<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/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>Isshen, LLC: Useful tricks with script/console</title>
    <link>http://blog.isshen.com/articles/2007/08/01/useful-tricks-with-script-console</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Useful tricks with script/console</title>
      <description>&lt;p&gt;One of my favorite tools for Rails is script/console. It lets me test out snippets of code to make sure things work the way they are supposed to work. I found two useful things this morning:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tab completion&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;Tab completion works in script/console. &lt;/p&gt;

&lt;blockquote&gt;
    &lt;p&gt;script/console&lt;br/&gt;
    user = User.find :first&lt;br/&gt;
    user.up[tab]&lt;br/&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You have no idea how happy that makes me.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;reload!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;After I found out about tab completion, I found myself making some heavy code changes, and testing them out in the console. I kept having to quit and restart the console. Out on a lark, I hit 'r' and hit tab ... and found 'reload!'. I always wanted that command, but I had thought it was 'reload' not 'reload!'. Go figure.&lt;/p&gt;</description>
      <pubDate>Wed, 01 Aug 2007 06:43:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:8a737b95-992b-4b86-9507-cb9d9b2def39</guid>
      <author>Hosh</author>
      <link>http://blog.isshen.com/articles/2007/08/01/useful-tricks-with-script-console</link>
      <category>Ruby on Rails</category>
      <category>ruby_on_rails</category>
      <category>debugging</category>
      <category>tools</category>
    </item>
  </channel>
</rss>
