<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Ruby on Rails has_many :through NameError: uninitialized constant</title>
	<atom:link href="http://www.netmojo.ca/2008/03/10/ruby-on-rails-has_many-through-nameerror-uninitialized-constant/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.netmojo.ca/2008/03/10/ruby-on-rails-has_many-through-nameerror-uninitialized-constant/</link>
	<description>Apple Certified Mac Consulting</description>
	<lastBuildDate>Mon, 09 Jan 2012 22:29:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Will</title>
		<link>http://www.netmojo.ca/2008/03/10/ruby-on-rails-has_many-through-nameerror-uninitialized-constant/comment-page-1/#comment-3170</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Mon, 09 Jan 2012 22:29:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.netmojo.ca/blog/2008/03/10/ruby-on-rails-has_many-through-nameerror-uninitialized-constant/#comment-3170</guid>
		<description>WOW!! thanks!!! years later this also saved me!! i spent 3 hours and found this to be my saving grace...

Dam pluralisation!!</description>
		<content:encoded><![CDATA[<p>WOW!! thanks!!! years later this also saved me!! i spent 3 hours and found this to be my saving grace&#8230;</p>
<p>Dam pluralisation!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Arnold</title>
		<link>http://www.netmojo.ca/2008/03/10/ruby-on-rails-has_many-through-nameerror-uninitialized-constant/comment-page-1/#comment-3153</link>
		<dc:creator>Steven Arnold</dc:creator>
		<pubDate>Thu, 13 Oct 2011 04:54:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.netmojo.ca/blog/2008/03/10/ruby-on-rails-has_many-through-nameerror-uninitialized-constant/#comment-3153</guid>
		<description>I could have spent a LONG time on this.  Thanks!  Good catch...years later.</description>
		<content:encoded><![CDATA[<p>I could have spent a LONG time on this.  Thanks!  Good catch&#8230;years later.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ernest</title>
		<link>http://www.netmojo.ca/2008/03/10/ruby-on-rails-has_many-through-nameerror-uninitialized-constant/comment-page-1/#comment-3119</link>
		<dc:creator>Ernest</dc:creator>
		<pubDate>Mon, 18 Jul 2011 15:13:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.netmojo.ca/blog/2008/03/10/ruby-on-rails-has_many-through-nameerror-uninitialized-constant/#comment-3119</guid>
		<description>Thanks a lot!!! You are my savior!!!!!</description>
		<content:encoded><![CDATA[<p>Thanks a lot!!! You are my savior!!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anbrie</title>
		<link>http://www.netmojo.ca/2008/03/10/ruby-on-rails-has_many-through-nameerror-uninitialized-constant/comment-page-1/#comment-3108</link>
		<dc:creator>anbrie</dc:creator>
		<pubDate>Wed, 25 May 2011 02:53:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.netmojo.ca/blog/2008/03/10/ruby-on-rails-has_many-through-nameerror-uninitialized-constant/#comment-3108</guid>
		<description>Thanks. Much.</description>
		<content:encoded><![CDATA[<p>Thanks. Much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.netmojo.ca/2008/03/10/ruby-on-rails-has_many-through-nameerror-uninitialized-constant/comment-page-1/#comment-3104</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sat, 07 May 2011 21:49:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.netmojo.ca/blog/2008/03/10/ruby-on-rails-has_many-through-nameerror-uninitialized-constant/#comment-3104</guid>
		<description>Small addition: I had a very similar problem in that I was getting this exact error.  Mine turned out to be a naming convention problem where I had named the class file of my join table pluralized, but the actual class name was not.  In the terms of your example I would have had file name: memberships.rb and class name Membership.

Weirdness.  Thanks for the posting nonetheless as it got me looking at pluralization.</description>
		<content:encoded><![CDATA[<p>Small addition: I had a very similar problem in that I was getting this exact error.  Mine turned out to be a naming convention problem where I had named the class file of my join table pluralized, but the actual class name was not.  In the terms of your example I would have had file name: memberships.rb and class name Membership.</p>
<p>Weirdness.  Thanks for the posting nonetheless as it got me looking at pluralization.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://www.netmojo.ca/2008/03/10/ruby-on-rails-has_many-through-nameerror-uninitialized-constant/comment-page-1/#comment-3102</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Mon, 18 Apr 2011 08:02:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.netmojo.ca/blog/2008/03/10/ruby-on-rails-has_many-through-nameerror-uninitialized-constant/#comment-3102</guid>
		<description>Man I hate Ruby. I think I&#039;m done with it... too many vague errors. At least in Java/C# you can tell what&#039;s going on.</description>
		<content:encoded><![CDATA[<p>Man I hate Ruby. I think I&#8217;m done with it&#8230; too many vague errors. At least in Java/C# you can tell what&#8217;s going on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eddie</title>
		<link>http://www.netmojo.ca/2008/03/10/ruby-on-rails-has_many-through-nameerror-uninitialized-constant/comment-page-1/#comment-3100</link>
		<dc:creator>eddie</dc:creator>
		<pubDate>Fri, 01 Apr 2011 10:20:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.netmojo.ca/blog/2008/03/10/ruby-on-rails-has_many-through-nameerror-uninitialized-constant/#comment-3100</guid>
		<description>Your Post Saved My Butt Tonight!  

I did not have the same problems, but similar issues.  Go figure...  It was Rails &#039;Naming Convention&#039; !!!.  Thanks a million. Now I can move on.</description>
		<content:encoded><![CDATA[<p>Your Post Saved My Butt Tonight!  </p>
<p>I did not have the same problems, but similar issues.  Go figure&#8230;  It was Rails &#8216;Naming Convention&#8217; !!!.  Thanks a million. Now I can move on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RailsNoob</title>
		<link>http://www.netmojo.ca/2008/03/10/ruby-on-rails-has_many-through-nameerror-uninitialized-constant/comment-page-1/#comment-3097</link>
		<dc:creator>RailsNoob</dc:creator>
		<pubDate>Fri, 11 Mar 2011 22:25:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.netmojo.ca/blog/2008/03/10/ruby-on-rails-has_many-through-nameerror-uninitialized-constant/#comment-3097</guid>
		<description>Thanks man. The application was up and running after this.</description>
		<content:encoded><![CDATA[<p>Thanks man. The application was up and running after this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Doherty</title>
		<link>http://www.netmojo.ca/2008/03/10/ruby-on-rails-has_many-through-nameerror-uninitialized-constant/comment-page-1/#comment-3095</link>
		<dc:creator>Dan Doherty</dc:creator>
		<pubDate>Thu, 10 Mar 2011 21:46:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.netmojo.ca/blog/2008/03/10/ruby-on-rails-has_many-through-nameerror-uninitialized-constant/#comment-3095</guid>
		<description>Mega dittos.

Also a couple of comments:

1. In the Third Edition of &quot;Agile Web Development with Rails&quot; on pp 370 and following, they use the plural form of the table name.  Perhaps this was changed in Rails 3?

2. It would seem that rather than throw an &#039;INTERNAL ERROR&#039; rails could try to singularize the name and try again, or at least suggest that a singular ought to be used.</description>
		<content:encoded><![CDATA[<p>Mega dittos.</p>
<p>Also a couple of comments:</p>
<p>1. In the Third Edition of &#8220;Agile Web Development with Rails&#8221; on pp 370 and following, they use the plural form of the table name.  Perhaps this was changed in Rails 3?</p>
<p>2. It would seem that rather than throw an &#8216;INTERNAL ERROR&#8217; rails could try to singularize the name and try again, or at least suggest that a singular ought to be used.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Snorri Páll</title>
		<link>http://www.netmojo.ca/2008/03/10/ruby-on-rails-has_many-through-nameerror-uninitialized-constant/comment-page-1/#comment-3094</link>
		<dc:creator>Snorri Páll</dc:creator>
		<pubDate>Thu, 10 Mar 2011 21:20:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.netmojo.ca/blog/2008/03/10/ruby-on-rails-has_many-through-nameerror-uninitialized-constant/#comment-3094</guid>
		<description>Thank you :)</description>
		<content:encoded><![CDATA[<p>Thank you :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

