<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Workin' on it. &#187; Agile Software Dev</title>
	<atom:link href="http://jameshalberg.wordpress.com/category/agile-software-dev/feed/" rel="self" type="application/rss+xml" />
	<link>http://jameshalberg.wordpress.com</link>
	<description></description>
	<lastBuildDate>Sat, 19 Nov 2011 14:15:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jameshalberg.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Workin' on it. &#187; Agile Software Dev</title>
		<link>http://jameshalberg.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jameshalberg.wordpress.com/osd.xml" title="Workin&#039; on it." />
	<atom:link rel='hub' href='http://jameshalberg.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Testing the controller</title>
		<link>http://jameshalberg.wordpress.com/2006/04/27/testing-the-controller/</link>
		<comments>http://jameshalberg.wordpress.com/2006/04/27/testing-the-controller/#comments</comments>
		<pubDate>Fri, 28 Apr 2006 02:02:32 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[Agile Software Dev]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Test Driven Development (TDD)]]></category>

		<guid isPermaLink="false">https://jameshalberg.wordpress.com/2006/04/27/testing-the-controller/</guid>
		<description><![CDATA[A couple things I found very handy today while setting up a functional test for a controller. First off, this controller relies on a user being logged in (but this isn&#39;t the controller that actually manages the login process). The &#8230; <a href="http://jameshalberg.wordpress.com/2006/04/27/testing-the-controller/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshalberg.wordpress.com&amp;blog=160606&amp;post=28&amp;subd=jameshalberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A couple things I found very handy today while setting up a functional test for a controller.</p>
<p>First off, this controller relies on a user being logged in (but this isn&#39;t the controller that actually manages the login process).</p>
<p>The easiest way I found to make sure that I was properly logged in was to temporarily change @controller to the UserController &#8212; login &#8212; then change back.  Like this:</p>
<p><img src="http://jameshalberg.files.wordpress.com/2006/04/controllerswap.png?w=500" alt="controllerswap.png" /></p>
<p>A <a href="http://lists.rubyonrails.org/pipermail/rails/2005-March/004229.html">handy pointer</a> regarding testing instance variables from Jeremy Kemper.</p>
<p>To access an instance variable in the controller that you are testing: simply examine what would have been sent to the view, in the response:</p>
<p>something = @response.template.assigns[&#39;something&#39;]&nbsp;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jameshalberg.wordpress.com/28/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jameshalberg.wordpress.com/28/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jameshalberg.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jameshalberg.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jameshalberg.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jameshalberg.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jameshalberg.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jameshalberg.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jameshalberg.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jameshalberg.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jameshalberg.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jameshalberg.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jameshalberg.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jameshalberg.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jameshalberg.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jameshalberg.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshalberg.wordpress.com&amp;blog=160606&amp;post=28&amp;subd=jameshalberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jameshalberg.wordpress.com/2006/04/27/testing-the-controller/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">jameshalberg</media:title>
		</media:content>

		<media:content url="http://jameshalberg.files.wordpress.com/2006/04/controllerswap.png" medium="image">
			<media:title type="html">controllerswap.png</media:title>
		</media:content>
	</item>
		<item>
		<title>Rubicizing</title>
		<link>http://jameshalberg.wordpress.com/2006/04/19/rubicizing/</link>
		<comments>http://jameshalberg.wordpress.com/2006/04/19/rubicizing/#comments</comments>
		<pubDate>Wed, 19 Apr 2006 09:34:10 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[Agile Software Dev]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">https://jameshalberg.wordpress.com/2006/04/19/rubicizing/</guid>
		<description><![CDATA[So far so good. In a fairly short amount of time I have an application with some basic functionality + user management (register, signin, email confirmations, etc). Very simple = very nice. So far I&#8217;ve been leaning pretty heavily on: &#8230; <a href="http://jameshalberg.wordpress.com/2006/04/19/rubicizing/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshalberg.wordpress.com&amp;blog=160606&amp;post=20&amp;subd=jameshalberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So far so good.  In a fairly short amount of time I have an application with some basic functionality + user management (register, signin, email confirmations, etc).  Very simple = very nice.  </p>
<p>So far I&#8217;ve been leaning pretty heavily on:<br />
<a href="http://pragmaticprogrammer.com/titles/ruby/index.html">Pick Axe</a> &#8211; Especially Chapters 27 (Built-in Classes and Modules) &amp; Chapter 28 (Standard Library).  Those have been an _incredibly_ useful resource for finding that method that you just know must exist, but what&#8217;s the syntax?</p>
<p><a href="http://pragmaticprogrammer.com/titles/rails/index.html">Agile Web Development w/ RoR</a> &#8211; Especially Chapter 14 &amp; 15 (Active Record) and a little Chapter 19 (Action Mailer).</p>
<p>&#8230; and there&#8217;s one other, but I&#8217;ll save that for the grand finale&#8230;</p>
<p>Now that this things working, it&#8217;s time to break it.  In my very first iteration I created the app with a single db, but in reality &#8211; it&#8217;s going to span two.  Today I needed to figure out exactly how this is done.  From <a href="http://wiki.rubyonrails.com/rails/pages/HowtoUseMultipleDatabases">what</a> <a href="http://blog.amber.org/2005/06/30/lost-in-multiple-rails/">I</a> <a href="http://rubyonrails.org/api/classes/ActiveRecord/Base.html">read</a>, this is something that is quite possible&#8230; but just isn&#8217;t all that straight forward.</p>
<p>Maybe saying that it &#8220;isn&#8217;t straight forward&#8221; isn&#8217;t really fair.  What&#8217;s really the case is more that: It&#8217;s just so bloomin easy to work with a single database that you never actually stop to really learn how you&#8217;re using the single database.  Instead you just change your _outrageously_ straight forward <a href="http://wiki.rubyonrails.org/rails/pages/Firebird+sample+database.yml">database.yml</a> file and BAM, you&#8217;re running.</p>
<p>I&#8217;ve found multiple different solutions out there.  Some of them really don&#8217;t sound appealing &#8211; or don&#8217;t really fit my needs.  Some seem to be exactly what I want&#8230; then didn&#8217;t work for me, for one reason or another.</p>
<p>I&#8217;m to the point now where it&#8217;s working and it&#8217;s really quite clean.  The only flaw (if it really is one) is that the model class is naming the database that it wants to use.  How bad is that?&#8230; I really don&#8217;t mind it at all to tell the truth.  I can certainly see an argument for moving it into the config though &#8211; which is possible as well&#8230; we&#8217;ll see if we take that route or not.</p>
<p>Where did I come across this solution, you might ask?  I know the suspense has been killing you regarding my other resource&#8230; why, <a href="http://www.pragmaticprogrammer.com/titles/fr_rr/index.html">Rails Recipes</a> of course.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jameshalberg.wordpress.com/20/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jameshalberg.wordpress.com/20/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jameshalberg.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jameshalberg.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jameshalberg.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jameshalberg.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jameshalberg.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jameshalberg.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jameshalberg.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jameshalberg.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jameshalberg.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jameshalberg.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jameshalberg.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jameshalberg.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jameshalberg.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jameshalberg.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshalberg.wordpress.com&amp;blog=160606&amp;post=20&amp;subd=jameshalberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jameshalberg.wordpress.com/2006/04/19/rubicizing/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">jameshalberg</media:title>
		</media:content>
	</item>
		<item>
		<title>One Web App</title>
		<link>http://jameshalberg.wordpress.com/2006/04/03/one-web-app/</link>
		<comments>http://jameshalberg.wordpress.com/2006/04/03/one-web-app/#comments</comments>
		<pubDate>Mon, 03 Apr 2006 10:40:52 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[Agile Software Dev]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">https://jameshalberg.wordpress.com/2006/04/03/one-web-app/</guid>
		<description><![CDATA[I&#39;m happy to report that the tutorial app is now fully functional.&#160; Just one chapter remains: Testing.&#160; &#60;sarcasm&#62; and since testing is basically of no importance: I think I can just count it as completed&#60;/sarcarsm&#62;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshalberg.wordpress.com&amp;blog=160606&amp;post=16&amp;subd=jameshalberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#39;m happy to report that the tutorial app is now fully functional.&nbsp; Just one chapter remains: Testing.&nbsp; &lt;sarcasm&gt; and since testing is basically of no importance: I think I can just count it as completed&lt;/sarcarsm&gt;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jameshalberg.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jameshalberg.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jameshalberg.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jameshalberg.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jameshalberg.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jameshalberg.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jameshalberg.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jameshalberg.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jameshalberg.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jameshalberg.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jameshalberg.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jameshalberg.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jameshalberg.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jameshalberg.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jameshalberg.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jameshalberg.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshalberg.wordpress.com&amp;blog=160606&amp;post=16&amp;subd=jameshalberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jameshalberg.wordpress.com/2006/04/03/one-web-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">jameshalberg</media:title>
		</media:content>
	</item>
		<item>
		<title>Shock and Awe</title>
		<link>http://jameshalberg.wordpress.com/2006/04/01/shock-and-awe/</link>
		<comments>http://jameshalberg.wordpress.com/2006/04/01/shock-and-awe/#comments</comments>
		<pubDate>Sun, 02 Apr 2006 04:42:22 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[Agile Software Dev]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">https://jameshalberg.wordpress.com/2006/04/01/shock-and-awe/</guid>
		<description><![CDATA[Seems like with every new piece of the tutorial, I&#39;m following comes another new 1-3 lines of code that just makes me say &#34;that&#39;s it?&#34;. The incredible thing really is that you encounter them about 3 times a chapter!There are &#8230; <a href="http://jameshalberg.wordpress.com/2006/04/01/shock-and-awe/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshalberg.wordpress.com&amp;blog=160606&amp;post=14&amp;subd=jameshalberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font size="2">Seems like with every new piece of the <a target="_blank" href="http://www.pragmaticprogrammer.com/titles/rails/">tutorial, I&#39;m following</a> comes another new 1-3 lines of code that just makes me say &quot;that&#39;s it?&quot;. The incredible thing really is that you encounter them about 3 times a chapter!</font><font size="2">There are about 5 things just from this afternoon that I could really put here but I&#39;ll share one example. Enforcing required fields in a form + displaying formatted error messages to the user when they fail to meet the requirements. This sounds so simple when you say it outloud, so really&#8230; it SHOULD be this easy. It&#39;s just nice that it finally is!</font></p>
<p><font size="2">Add to my model class:<br />
<font size="2" face="Courier New">validates_presence_of :name, :email, :address, :pay_type</font></font></p>
<p><font size="2"><font size="2" face="Courier New"><font size="2">Add to my view (rhtml):</font></font><font size="2" face="Courier New"><br />
</font><font size="2" face="Courier New">&lt;%=error_messages_for(:order)%&gt;</font></font></p>
<p><font size="2"><font size="2" face="Courier New">That&#39;s it. Now if you don&#39;t enter the name (or any other) field in my form, it will stop you from proceeding due to that first line, and display the reason in the second&#8230; not bad.</font></font></p>
<p><font size="2"><font size="2" face="Courier New">Equally amazing me this afternoon was my response from <a target="_blank" href="http://pragmaticprogrammer.com/">The Pragmatic Programmers</a> on the hardcopy of my book (which still hasn&#39;t arrived). While I did expect them to ship me a new copy without too much hassle (if you&#39;ve read <a target="_blank" href="http://pragmaticprogrammer.com/ppbook/index.shtml">the book</a> you know that they put a lot of value in a positive customer experience), but I wasn&#39;t expecting a response 20 minutes later appologizing for the inconvenience and telling me that arrangements were made to reship the book! Not to mention the fact that it wasn&#39;t a form letter &#8211; on a Saturday!</font></font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jameshalberg.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jameshalberg.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jameshalberg.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jameshalberg.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jameshalberg.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jameshalberg.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jameshalberg.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jameshalberg.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jameshalberg.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jameshalberg.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jameshalberg.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jameshalberg.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jameshalberg.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jameshalberg.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jameshalberg.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jameshalberg.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshalberg.wordpress.com&amp;blog=160606&amp;post=14&amp;subd=jameshalberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jameshalberg.wordpress.com/2006/04/01/shock-and-awe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">jameshalberg</media:title>
		</media:content>
	</item>
		<item>
		<title>One Highly Productive Hour</title>
		<link>http://jameshalberg.wordpress.com/2006/03/31/one-highly-productive-hour/</link>
		<comments>http://jameshalberg.wordpress.com/2006/03/31/one-highly-productive-hour/#comments</comments>
		<pubDate>Fri, 31 Mar 2006 11:06:48 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[Agile Software Dev]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">https://jameshalberg.wordpress.com/2006/03/31/one-highly-productive-hour/</guid>
		<description><![CDATA[It&#39;s amazing how much easier life is when the configuration is out of the way&#8230; I only had an hour to work on things tonight but was able to add the shopping cart to the tutorial application.&#160; Granted I am &#8230; <a href="http://jameshalberg.wordpress.com/2006/03/31/one-highly-productive-hour/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshalberg.wordpress.com&amp;blog=160606&amp;post=12&amp;subd=jameshalberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It&#39;s amazing how much easier life is when the configuration is out of the way&#8230;</p>
<p>I only had an hour to work on things tonight but was able to add the shopping cart to the tutorial application.&nbsp; Granted I am following along from&nbsp;a canned example and having everything spoon fed, but still: it seems like a pretty large amount of work that was really quite simple.&nbsp; It&#39;s really quite exciting to see how simple things can be when you don&#39;t have to jump through 10 hoops to do 1 thing.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jameshalberg.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jameshalberg.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jameshalberg.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jameshalberg.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jameshalberg.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jameshalberg.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jameshalberg.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jameshalberg.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jameshalberg.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jameshalberg.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jameshalberg.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jameshalberg.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jameshalberg.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jameshalberg.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jameshalberg.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jameshalberg.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshalberg.wordpress.com&amp;blog=160606&amp;post=12&amp;subd=jameshalberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jameshalberg.wordpress.com/2006/03/31/one-highly-productive-hour/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">jameshalberg</media:title>
		</media:content>
	</item>
		<item>
		<title>More fun with config</title>
		<link>http://jameshalberg.wordpress.com/2006/03/29/more-fun-with-config/</link>
		<comments>http://jameshalberg.wordpress.com/2006/03/29/more-fun-with-config/#comments</comments>
		<pubDate>Thu, 30 Mar 2006 05:12:11 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[Agile Software Dev]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">https://jameshalberg.wordpress.com/2006/03/29/more-fun-with-config/</guid>
		<description><![CDATA[Well, the plan to work on the plane on the way ended up&#8230; ok.&#160; I ran into some more config problems &#8211; this time with MySQL, that I thought would be much easier resolved with internet access though so I &#8230; <a href="http://jameshalberg.wordpress.com/2006/03/29/more-fun-with-config/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshalberg.wordpress.com&amp;blog=160606&amp;post=11&amp;subd=jameshalberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font size="3" face="Times New Roman">Well, the plan to work on the plane on the way ended up&hellip; ok.&nbsp; I ran into some more config problems &ndash; this time with <a target="_blank" href="http://www.mysql.com">MySQL</a>, that I thought would be much easier resolved with internet access though so I didn&rsquo;t get too far.</font></p>
<p><font size="3" face="Times New Roman">Now that I&rsquo;m back home though: still haven&rsquo;t found a great resolution.</font></p>
<p>&nbsp;<img width="699" src="http://jameshalberg.files.wordpress.com/2006/03/ODBC%20access%20denied.JPG?w=699&#038;h=48" alt="ODBC access denied.JPG" height="48" /></p>
<p><font size="3" face="Times New Roman">I&rsquo;ve found a couple of places that indicate that I could just grant for that user to resolve the issue, but when I try that &ndash; I&rsquo;m getting:</font></p>
<p><font size="3" face="Times New Roman"><img width="527" src="http://jameshalberg.files.wordpress.com/2006/03/grant_ODBC.JPG?w=527&#038;h=31" alt="grant_ODBC.JPG" height="31" /></font></p>
<p><font size="3" face="Times New Roman">Anyway, after struggling and searching quite a bit I just decided to circumvent the error and just run the statement manually in MySql.</font></p>
<p><img width="682" src="http://jameshalberg.files.wordpress.com/2006/03/manual_run.JPG?w=682&#038;h=72" alt="manual_run.JPG" height="72" /></p>
<p><font size="3" face="Times New Roman">That seems to have worked ok&hellip; of course, I&rsquo;m sure that at some point in the future I&rsquo;m going to be running into this same issue.&nbsp; Even just having to retype that statement would be annoying, so hopefully I didn&rsquo;t make any spelling mistakes.</font></p>
<p><font size="3" face="Times New Roman"><a target="_blank" href="http://robsanheim.com">Rob</a> has also pointed out a little bit easier way for me to find some middle ground&hellip; this at least doesn&rsquo;t make me potentially need to retype that statement:</font></p>
<p><img width="450" src="http://jameshalberg.files.wordpress.com/2006/03/semi_manual_run.JPG?w=450&#038;h=74" alt="semi_manual_run.JPG" height="74" /></p>
<p><font size="3" face="Times New Roman">It certainly has been a longer&nbsp;trip getting to this point than I thought,&nbsp;but I do seem to be on track now.&nbsp; I do have a working application connected to the database properly.&nbsp; And really&#8230; even with the configuration headaches, I don&#39;t know how much longer it took than had I done the same things in Java&#8230; had I not run into any config problems: it would have been ridiculously faster.</font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jameshalberg.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jameshalberg.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jameshalberg.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jameshalberg.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jameshalberg.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jameshalberg.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jameshalberg.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jameshalberg.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jameshalberg.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jameshalberg.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jameshalberg.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jameshalberg.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jameshalberg.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jameshalberg.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jameshalberg.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jameshalberg.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshalberg.wordpress.com&amp;blog=160606&amp;post=11&amp;subd=jameshalberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jameshalberg.wordpress.com/2006/03/29/more-fun-with-config/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">jameshalberg</media:title>
		</media:content>

		<media:content url="http://jameshalberg.files.wordpress.com/2006/03/ODBC%20access%20denied.JPG" medium="image">
			<media:title type="html">ODBC access denied.JPG</media:title>
		</media:content>

		<media:content url="http://jameshalberg.files.wordpress.com/2006/03/grant_ODBC.JPG" medium="image">
			<media:title type="html">grant_ODBC.JPG</media:title>
		</media:content>

		<media:content url="http://jameshalberg.files.wordpress.com/2006/03/manual_run.JPG" medium="image">
			<media:title type="html">manual_run.JPG</media:title>
		</media:content>

		<media:content url="http://jameshalberg.files.wordpress.com/2006/03/semi_manual_run.JPG" medium="image">
			<media:title type="html">semi_manual_run.JPG</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting Started</title>
		<link>http://jameshalberg.wordpress.com/2006/03/23/getting-started/</link>
		<comments>http://jameshalberg.wordpress.com/2006/03/23/getting-started/#comments</comments>
		<pubDate>Thu, 23 Mar 2006 10:00:49 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[Agile Software Dev]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">https://jameshalberg.wordpress.com/2006/03/23/getting-started/</guid>
		<description><![CDATA[Well, I didn&#8217;t get off to a very good start as my copy of Agile Web Development with Rails immediately crashed on me. What&#8217;s that you say? That&#8217;s the risk you take ordering a pdf book instead of the &#8220;real &#8230; <a href="http://jameshalberg.wordpress.com/2006/03/23/getting-started/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshalberg.wordpress.com&amp;blog=160606&amp;post=5&amp;subd=jameshalberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Well, I didn&#8217;t get off to a very good start as my copy of <a href="http://www.pragmaticprogrammer.com/titles/rails/index.html">Agile Web Development with Rails</a> immediately crashed on me.  What&#8217;s that you say?  That&#8217;s the risk you take ordering a pdf book instead of the &#8220;real thing&#8221;?  Well, it wasn&#8217;t a pdf &#8211; the physical copy of the book crashed!</p>
<p><img alt="agilerailsboook.JPG" src="http://jameshalberg.files.wordpress.com/2006/03/agilerailsboook.JPG?w=500" /></p>
<p>I&#8217;m back on track now though.  Having returned that copy to Borders and buying it from <a href="http://www.pragmaticprogrammer.com/titles/index.html">the source</a> (like I should have in the first place), I&#8217;m immediately up and running with the pdf and the physical copy (hopefully with a binder that actually holds pages together) is on it&#8217;s way.</p>
<p>Working through the beginning of the book I did actually have some trouble getting Rails installed.  I had an issue with the <a href="http://rubyforge.org/frs/?group_id=167">One Click Install</a> for 1.8.4-15 (stable) so instead of spend much time on it I just uninstalled and replaced it with 1.8.4-14 (final) and it went in clean.  WinSQL was no problem to install.  Then I came to the point of following the 1 line of instructions that it takes to get Rails up and running with <a href="http://docs.rubygems.org/">RubyGems</a>&#8230; trouble.<br />
<a rel="attachment" class="imagelink" title="rubyinstall.JPG" href="http://jameshalberg.wordpress.com/?attachment_id=3" /></p>
<p><a rel="attachment" class="imagelink" title="rubyinstall.JPG" href="http://jameshalberg.wordpress.com/?attachment_id=3"><img width="573" height="76" alt="rubyinstall.JPG" src="http://jameshalberg.files.wordpress.com/2006/03/rubyinstall.JPG?w=573&#038;h=76" /></a></p>
<p>A solid half-hour of troubleshooting later I decided to just call <a href="http://robsanheim.com">Rob</a>.  He had me do &#8220;gems &#8211;version&#8221;, this was something that I had already done, but I was really just doing it to make sure that it said _something_ .  To him 0.8.3 actually meant something: old.  So, how did I download a brand new copy of the old version?  Well, I&#8217;m just _that_ good!  Anyway, digging into the directory structure a bit (ruby/lib/ruby/gem­s/1.8/gem/) I noticed that I had a directory called &#8220;rubygems-update-0.8.11&#8243;.  It contained something that (promisingly) was titled &#8220;setup&#8221; which I ran and &#8230; drumroll please &#8230; brought me up to 0.8.11.  Suddenly the &#8220;gem install rails &#8211;include-dependencies&#8221; ran and all is right with the world.</p>
<p>Now that I&#8217;m up and running I&#8217;ve gone up through Chapter 4.  Basically this means that I have now actually done the simple hello world application that I&#8217;ve seen done several times in various presentations.  In all seriousness though, it is very good that I&#8217;ve actually gone through it myself instead of just seeing it done for the nth time&#8230; it certainly did make it easy to pick up though _grin_.</p>
<p>Well, I actually did make it as far as I had hoped and I feel like I&#8217;m right on schedule.  It was also important that I get the whole environment setup so that I can get some work done on the plane to Vegas.  I can guarantee that nothing will get done while I&#8217;m out there &#8211; and let&#8217;s be honest: saying something will get done on the flight home is probably not the most realistic statement either, but&#8230; at least I&#8217;m up and rolling!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jameshalberg.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jameshalberg.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jameshalberg.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jameshalberg.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jameshalberg.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jameshalberg.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jameshalberg.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jameshalberg.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jameshalberg.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jameshalberg.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jameshalberg.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jameshalberg.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jameshalberg.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jameshalberg.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jameshalberg.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jameshalberg.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshalberg.wordpress.com&amp;blog=160606&amp;post=5&amp;subd=jameshalberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jameshalberg.wordpress.com/2006/03/23/getting-started/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">jameshalberg</media:title>
		</media:content>

		<media:content url="http://jameshalberg.files.wordpress.com/2006/03/agilerailsboook.JPG" medium="image">
			<media:title type="html">agilerailsboook.JPG</media:title>
		</media:content>

		<media:content url="http://jameshalberg.files.wordpress.com/2006/03/rubyinstall.JPG" medium="image">
			<media:title type="html">rubyinstall.JPG</media:title>
		</media:content>
	</item>
	</channel>
</rss>
