<?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>I'm a Richardson, RU? &#187; Books &amp; Publications</title>
	<atom:link href="http://www.imarichardson.com/cat/books-publications/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.imarichardson.com</link>
	<description>(ugh...really cool tagline goes here)</description>
	<lastBuildDate>Sat, 21 Aug 2010 16:36:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Agile Web Development with Rails Code Fix</title>
		<link>http://www.imarichardson.com/2006/10/01/agile-web-development-with-rails-code-fix/</link>
		<comments>http://www.imarichardson.com/2006/10/01/agile-web-development-with-rails-code-fix/#comments</comments>
		<pubDate>Mon, 02 Oct 2006 01:29:02 +0000</pubDate>
		<dc:creator>imarichardson</dc:creator>
				<category><![CDATA[Apple/Macintosh]]></category>
		<category><![CDATA[Books &#038; Publications]]></category>
		<category><![CDATA[Programming &#038; Development]]></category>

		<guid isPermaLink="false">http://www.imarichardson.com/2006/10/01/agile-web-development-with-rails-code-fix/</guid>
		<description><![CDATA[If anyone is going along through the Agile Web Development with Rails book and gets to page 66 where you are using the migration &#8220;alter table products &#8230;&#8221; you&#8217;ll indubitably come across the error where Rails doesn&#8217;t seem to like what you&#8217;ve put in the migration file. You may receive an error like:

1234567891011AddPrice: migrating =====================================================

—add_column(:products, [...]]]></description>
			<content:encoded><![CDATA[<p>If anyone is going along through the Agile Web Development with Rails book and gets to page 66 where you are using the migration &#8220;alter table products &#8230;&#8221; you&#8217;ll indubitably come across the error where Rails doesn&#8217;t seem to like what you&#8217;ve put in the migration file. <span id="more-92"></span>You may receive an error like:</p>
<pre>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">AddPrice: migrating =====================================================<br />
<br />
—add_column(:products, :price, :decimal, {:precision=&amp;gt;8, :default=&amp;gt;0, :scale=&amp;gt;2})<br />
<br />
rake aborted!<br />
<br />
You have a nil object when you didn’t expect it! You might have <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\expected an instance of Array. <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\The error occured while evaluating nil.<br />
<br />
(See full trace by running task with—trace)</div></td></tr></tbody></table></div>
</pre>
<p>I found <a href="http://fora.pragprog.com/rails-recipes/discuss-the-book/post/498">this post</a> which helps out. It looks like the problem is with the decimal type specified so instead of what the book gives, type this as you&#8217;re migration and everything should work without a hitch:</p>
<pre>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">class AddPrice &lt; ActiveRecord::Migration<br />
&nbsp; def self.up<br />
&nbsp; &nbsp; &nbsp; add_column :products,:price,:integer,:precision =&gt; 8,:scale =&gt; 2,:default =&gt; 0<br />
&nbsp; end<br />
<br />
&nbsp; def self.down<br />
&nbsp; &nbsp; remove_column :products, :price<br />
&nbsp; end<br />
end</div></td></tr></tbody></table></div>
</pre>
<p>
So it&#8217;s not really a fix and t doesn&#8217;t solve the fact that you don&#8217;t have a decimal, but at least it will let you move on through the book (and I still can&#8217;t figure out why it won&#8217;t work, even with rails &#8220;on the edge&#8221; working)&#8230;
</p>
<p><!-- technorati tags start -->
<p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/Books" rel="tag">Books</a>, <a href="http://www.technorati.com/tag/Tutorials" rel="tag">Tutorials</a>, <a href="http://www.technorati.com/tag/Fixes" rel="tag">Fixes</a>, <a href="http://www.technorati.com/tag/RubyOnRails" rel="tag">RubyOnRails</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.imarichardson.com/2006/10/01/agile-web-development-with-rails-code-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting started with Ruby</title>
		<link>http://www.imarichardson.com/2006/09/25/getting-started-with-ruby/</link>
		<comments>http://www.imarichardson.com/2006/09/25/getting-started-with-ruby/#comments</comments>
		<pubDate>Mon, 25 Sep 2006 09:26:40 +0000</pubDate>
		<dc:creator>imarichardson</dc:creator>
				<category><![CDATA[Books &#038; Publications]]></category>
		<category><![CDATA[Programming &#038; Development]]></category>

		<guid isPermaLink="false">http://www.imarichardson.com/2006/09/25/getting-started-with-ruby/</guid>
		<description><![CDATA[<p>
If you're looking to get started with Ruby on Rails, then you'll need the "Ruby" part somewhere along the way.  The great news is that is a really great language with a lot of power and really human friendly syntax.  Check out these links to get rolling: Official Ruby Language Quickstart; a 20 minute primer to the Ruby Language Try Ruby: a really cool utility for learning Ruby that runs in your web browser Why's (Poigname) guide to Ruby ...  funny yet informative eBook for learning how Ruby works.
</p>]]></description>
			<content:encoded><![CDATA[<p>
<img src="http://www.imarichardson.com/wp-content/uploads/rails.png" height="112" width="87" border="0" align="left" hspace="4" vspace="4" alt="rails" title="rails" /><br />
<br />If you&#8217;re looking to get started with <a href="http://www.rubyonrails.org/">Ruby on Rails</a>, then you&#8217;ll need the &#8220;Ruby&#8221; part somewhere along the way. The great news is that is a really great language with a lot of power and really human friendly syntax. Check out these links to get rolling:
</p>
<ul>
<li>Official Ruby Language <a href="http://www.ruby-lang.org/en/documentation/quickstart/">Quickstart</a>; a 20 minute primer to the Ruby Language</li>
<li><a href="http://tryruby.hobix.com/">Try Ruby</a>: a really cool utility for learning Ruby that runs in your web browser</li>
<li><a href="http://poignantguide.net/ruby/">Why&#8217;s (Poignant) guide to Ruby </a>&#8230; funny yet informative eBook for learning how Ruby works.</li>
</ul>
<p><!-- technorati tags start -->
<p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/Ruby On Rails" rel="tag">Ruby On Rails</a>, <a href="http://www.technorati.com/tag/Ruby" rel="tag">Ruby</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.imarichardson.com/2006/09/25/getting-started-with-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My library&#8217;s in your browser!</title>
		<link>http://www.imarichardson.com/2005/12/22/my-librarys-in-your-browser/</link>
		<comments>http://www.imarichardson.com/2005/12/22/my-librarys-in-your-browser/#comments</comments>
		<pubDate>Thu, 22 Dec 2005 11:03:22 +0000</pubDate>
		<dc:creator>imarichardson</dc:creator>
				<category><![CDATA[Books &#038; Publications]]></category>

		<guid isPermaLink="false">http://imaricha.setupmyblog.com/?p=35</guid>
		<description><![CDATA[Wanna see how geek-a-fied I am? Then you&#8217;ve got to go check out my online library. It&#8217;s not the full collection, just everything I have at work. So if you can judge a man by his text &#8230; well, you make the decision.
Also, heads up for a future article &#8211; a friend came by mentioning [...]]]></description>
			<content:encoded><![CDATA[<p>Wanna see how geek-a-fied I am? Then you&#8217;ve got to go <a href="http://imarichardson.com/mylibrary/">check out my online library</a>. It&#8217;s not the full collection, just everything I have at work. So if you can judge a man by his text &#8230; well, you make the decision.</p>
<p>Also, heads up for a future article &#8211; a friend came by mentioning that she&#8217;d be getting an <a href="http://www.apple.com/ipodnano/">iPod Nano</a> (boy did the jealous engine crank up inside of me!).  So after talking a bit I said I&#8217;d write about my top 10 list of things to consider after the purchase. Basically, I&#8217;ll be covering everything from protection to &quot;cool-it-ties&quot;. So stay posted! </p>
]]></content:encoded>
			<wfw:commentRss>http://www.imarichardson.com/2005/12/22/my-librarys-in-your-browser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
