<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>James P Farrell &#187; rails</title>
	<atom:link href="http://jamespfarrell.com/blog/category/rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamespfarrell.com/blog</link>
	<description>Freelance web designer blog</description>
	<lastBuildDate>Wed, 07 Mar 2012 11:34:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>NameError: uninitialized constant User::Registration</title>
		<link>http://jamespfarrell.com/blog/nameerror-uninitialized-constant-userregistration/93/</link>
		<comments>http://jamespfarrell.com/blog/nameerror-uninitialized-constant-userregistration/93/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 04:52:14 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://jamespfarrell.com/blog/?p=93</guid>
		<description><![CDATA[Problem with &#8220;Beginning Rails page 113:
I found a typo in the book too&#8230; it says:
Let&#8217;s generate the model and migration for the registration table now:
$ ./script/generate model registrations
it should say:
$ ./script/generate model registration
This causes problems later on when doing the following:
event = Event.find(:first)
user = create(:login => 'simon', :email => 'simon@example.com', :password => 'secret')
user.registrations.any?
NameError: uninitialized constant [...]]]></description>
			<content:encoded><![CDATA[<p>Problem with &#8220;Beginning Rails page 113:</p>
<p>I found a typo in the book too&#8230; it says:<br />
Let&#8217;s generate the model and migration for the registration table now:<br />
<code>$ ./script/generate model registrations</code></p>
<p>it should say:<br />
<code>$ ./script/generate model registration</code></p>
<p>This causes problems later on when doing the following:<br />
<code>event = Event.find(:first)<br />
user = create(:login => 'simon', :email => 'simon@example.com', :password => 'secret')<br />
user.registrations.any?<br />
NameError: uninitialized constant User::Registration</code></p>
<p>I had to figure that one out the hard way&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://jamespfarrell.com/blog/nameerror-uninitialized-constant-userregistration/93/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

