<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>a.muse: Things that I have found helpful in learning ruby and rails</title>
    <link>http://www.jessirae.com/blog/articles/2006/03/20/things-that-i-have-found-helpful-in-learning-ruby-and-rails</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Things that I have found helpful in learning ruby and rails</title>
      <description>&lt;p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.rubyonrails.org/images/rails.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 85px;" src="http://www.rubyonrails.org/images/rails.png" alt="" border="0" /&gt;&lt;/a&gt;
A little chart I found somewhere (in the Programming Ruby book, I think):&lt;/p&gt;


	&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Example variable and class names                         &lt;/span&gt;
&lt;span style="font-weight: bold;"&gt;Local:&lt;/span&gt; name, fishAndChips, x_axis, thx1138, _26&lt;/p&gt;


	&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Global (accessible by the program): &lt;/span&gt;$debug, $CUSTOMER, $_,   $plan9, $Global&lt;/p&gt;


	&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Instance (accessible by the object):&lt;/span&gt;     @name, @point_1, @X, @_, @plan9&lt;/p&gt;


	&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Class:&lt;/span&gt;     &lt;code&gt;@total, &lt;/code&gt;@symtab, &lt;code&gt;@N, &lt;/code&gt;@x_pos, @@SINGLE&lt;/p&gt;


	&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Constants and Class Names:&lt;/span&gt; PI, FeetPerMile, String, MyClass,  Jazz_Song
&lt;hr /&gt;
Because it is so easy to forget the command line commands&amp;#8230;
To list the version of rails installed, type &lt;span style="font-style: italic;"&gt;gem list rails&lt;/span&gt; .
To start the server, type &lt;span style="font-style: italic;"&gt;ruby script\server&lt;/span&gt;.
To create a new application, type &lt;span style="font-style: italic;"&gt;rails name_of_application&lt;/span&gt;.
To create a new controller, type &lt;span style="font-style: italic;"&gt;ruby script/generate controller name_of_controller&lt;/span&gt;.
To generate the entire scaffold, type &lt;span style="font-style: italic;"&gt;ruby script/generate scaffold Table_Name Controller_Name&lt;/span&gt;.&lt;/p&gt;


	&lt;p&gt;And don&amp;#8217;t forget form helpers like:
&amp;lt;%= link_to &amp;#8220;Display_Link_Name&amp;#8221;, :action =&amp;gt; &amp;#8220;corresponding_action_in_the_controller&amp;#8221; %&amp;gt;&lt;/p&gt;
</description>
      <pubDate>Mon, 20 Mar 2006 15:04:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:439ec73c-2c1e-4301-88d4-c312fd915698</guid>
      <author>closetmaster</author>
      <link>http://www.jessirae.com/blog/articles/2006/03/20/things-that-i-have-found-helpful-in-learning-ruby-and-rails</link>
      <category>ruby &amp; rails</category>
      <category>technology</category>
      <trackback:ping>http://www.jessirae.com/blog/articles/trackback/26</trackback:ping>
    </item>
  </channel>
</rss>

