<?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"
	>

<channel>
	<title>benrasmusen.com &#187; Ruby On Rails</title>
	<atom:link href="http://benrasmusen.com/category/ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://benrasmusen.com</link>
	<description>a web professional committed to creating value</description>
	<pubDate>Sat, 23 Aug 2008 00:09:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>.script/console and other ruby on rails wonders</title>
		<link>http://benrasmusen.com/ruby-on-rails/scriptconsole-and-other-ruby-on-rails-wonders/</link>
		<comments>http://benrasmusen.com/ruby-on-rails/scriptconsole-and-other-ruby-on-rails-wonders/#comments</comments>
		<pubDate>Mon, 16 Oct 2006 15:11:55 +0000</pubDate>
		<dc:creator>Ben Rasmusen</dc:creator>
		
		<category><![CDATA[Ruby On Rails]]></category>

		<guid isPermaLink="false">http://benrasmusen.com/archives/18</guid>
		<description><![CDATA[I&#8217;m relatively new to this whole Ruby on Rails scene.  You might say I&#8217;m a bit of a n00b.  But it&#8217;s not just Ruby on Rails I&#8217;m new to it&#8217;s frameworks in general and OO languages as well.  Which is not a good combo.  But that&#8217;s a topic for another post. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m relatively new to this whole Ruby on Rails scene.  You might say I&#8217;m a bit of a n00b.  But it&#8217;s not just Ruby on Rails I&#8217;m new to it&#8217;s frameworks in general and OO languages as well.  Which is not a good combo.  But that&#8217;s a topic for another post.  Right now I&#8217;d like to share something I learned early on Saturday morning as I contemplated breaking my laptop on my face because my form would&#8217;nt update my database.  Fortunately I was able to take a break before I did anything irrational and hoped on to the #rubyonrails IRC channel.  A big shoutout to them!  I learned a lot in a short amount of time and here are a couple of them.</p>
<p><u><strong>.script/console</strong></u><br />
I&#8217;ll start with the best and go down from there.  In the midst of my troubleshooting woes I was introduced to .script/console by a member of the aformentioned IRC channel.  This is an invaluable tool in the Ruby on Rails framework.  In a nutshell it&#8217;s a ruby console with access to your projects Classes and Database connections.  You basically run ruby commands using stuff in your app.  Holy freakin&#8217; awesome!  It&#8217;s a lot more responsive in terms of immediate feedback and you don&#8217;t have to worry about the hassle of views and other junk.  Great debugging and testing tool.  I know I should have known about this long ago, but we all have to learn at some point.</p>
<p>More info:<br />
http://wiki.rubyonrails.org/rails/pages/Console<br />
http://clarkware.com/cgi/blosxom/2006/04/04</p>
<p><strong><u>t</u><u>ail -f log/development.log</u><br />
</strong>This one is awesome as well, but on a different level.  After spending near an hour wading through the development.log which was packed full of routing errors (which makes me wonder about the sanity of Locomotive) I was clued into this awesomeness.  Turns out if you run this little line in a Terminal window in the root of your application you can see real time the log outputs, which is super handy in conjunction with the above .script/console command (a little dual terminal window action) because it becomes all the more verbose.  Which is awesome when you&#8217;re trying to pinpoint a hidden issue.<br />
<h3>Some other entries you might enjoy:</h3>
<ul class="related_post">
<li><a href="http://benrasmusen.com/music/sic-transit-gloria-glory-fades/" title="Sic Transit Gloria&#8230; Glory Fades">Sic Transit Gloria&#8230; Glory Fades</a></li>
<li><a href="http://benrasmusen.com/ruby-on-rails/ror-conventions/" title="Ruby on Rails Conventions">Ruby on Rails Conventions</a></li>
<li><a href="http://benrasmusen.com/work/extra-info-in-payment-methods/" title="Extra Info in Payment Methods">Extra Info in Payment Methods</a></li>
<li><a href="http://benrasmusen.com/uncategorized/official-flag-of-colorado-springs/" title="Official Flag of Colorado Springs">Official Flag of Colorado Springs</a></li>
<li><a href="http://benrasmusen.com/technology/rockstartupcom/" title="Rockstartup.com">Rockstartup.com</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://benrasmusen.com/ruby-on-rails/scriptconsole-and-other-ruby-on-rails-wonders/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ruby on Rails Conventions</title>
		<link>http://benrasmusen.com/ruby-on-rails/ror-conventions/</link>
		<comments>http://benrasmusen.com/ruby-on-rails/ror-conventions/#comments</comments>
		<pubDate>Thu, 05 Oct 2006 18:58:29 +0000</pubDate>
		<dc:creator>Ben Rasmusen</dc:creator>
		
		<category><![CDATA[Ruby On Rails]]></category>

		<guid isPermaLink="false">http://benrasmusen.com/archives/8</guid>
		<description><![CDATA[I&#8217;ve read a few blog posts that have to do with the frustration of finding basic Ruby on Rails conventions.  For example if you should pluralize this or capitalize that.  And I&#8217;ve discovered first hand that it&#8217;s helpful to have those things laid out before you get to into the project you&#8217;re attempting [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve read a few blog posts that have to do with the frustration of finding basic Ruby on Rails conventions.  For example if you should pluralize this or capitalize that.  And I&#8217;ve discovered first hand that it&#8217;s helpful to have those things laid out before you get to into the project you&#8217;re attempting to develop.<span id="more-8"></span></p>
<p>I found this little article very helpful, you may find it on the rubyonrails.org wiki here: <a href="http://wiki.rubyonrails.org/rails/pages/TipSheetForBeginners">TipSheetForBeginners</a>.  Some of the highlights are:</p>
<blockquote>
<ul>
<li>Table (schema) in database ( plural, with underscores instead of spaces between words, like steering_wheels)</li>
<li>Model ( singular, first letter Capitalized, CamelCase for models like SteeringWheel)</li>
</ul>
</blockquote>
<p>Now the article is short and it&#8217;s not complete by any means, but it&#8217;s definately a start.  I wish I had found this article before I had gotten to far in.<br />
<h3>Some other entries you might enjoy:</h3>
<ul class="related_post">
<li><a href="http://benrasmusen.com/technology/ideas-ideas/" title="Ideas, ideas.">Ideas, ideas.</a></li>
<li><a href="http://benrasmusen.com/work/mosconfig_live_site-the-www-could-be-the-difference/" title="$mosConfig_live_site - the &#8216;www&#8217; could be the difference">$mosConfig_live_site - the &#8216;www&#8217; could be the difference</a></li>
<li><a href="http://benrasmusen.com/music/top-music-for-2006/" title="Top Music for 2006">Top Music for 2006</a></li>
<li><a href="http://benrasmusen.com/uncategorized/my-first-professional-sporting-event/" title="My first professional sporting event">My first professional sporting event</a></li>
<li><a href="http://benrasmusen.com/music/sic-transit-gloria-glory-fades/" title="Sic Transit Gloria&#8230; Glory Fades">Sic Transit Gloria&#8230; Glory Fades</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://benrasmusen.com/ruby-on-rails/ror-conventions/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 2.789 seconds -->
