<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: My .irbrc for console/irb</title>
	<atom:link href="http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/feed/" rel="self" type="application/rss+xml" />
	<link>http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/</link>
	<description>Ruby makes Rails, Javascript makes Ajax, Dr Nic makes Magic</description>
	<pubDate>Sun, 20 Jul 2008 08:53:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Ted Naleid &#187; Syntactic Sugar in Groovy and Ruby</title>
		<link>http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-92348</link>
		<dc:creator>Ted Naleid &#187; Syntactic Sugar in Groovy and Ruby</dc:creator>
		<pubDate>Wed, 28 May 2008 04:53:29 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-92348</guid>
		<description>[...] the .irbrc file auto load ruby code when going into irb (the interactive ruby shell. Having a .groovyrc file that gets loaded when [...]</description>
		<content:encoded><![CDATA[<p>[...] the .irbrc file auto load ruby code when going into irb (the interactive ruby shell. Having a .groovyrc file that gets loaded when [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-79547</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Sun, 06 Apr 2008 06:43:41 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-79547</guid>
		<description>@Piggybox [&lt;a href='http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-451' rel="nofollow"&gt;via&lt;/a&gt;] - 

I'm not sure that's true. Python has this thing called ipython which seems to work within windows cmd. Dito for cygwin. If someone knows how to make wirble work in windows, that'd be great.</description>
		<content:encoded><![CDATA[<p>@Piggybox [<a href='http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-451' rel="nofollow">via</a>] - </p>
<p>I&#8217;m not sure that&#8217;s true. Python has this thing called ipython which seems to work within windows cmd. Dito for cygwin. If someone knows how to make wirble work in windows, that&#8217;d be great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim OLeary</title>
		<link>http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-49167</link>
		<dc:creator>Jim OLeary</dc:creator>
		<pubDate>Thu, 18 Oct 2007 10:32:49 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-49167</guid>
		<description>(I find) another useful method to add to your irbrc is : 

def self.load_rails(from="./")
  require File.expand_path(File.join(from,"config/boot"))
  require File.join(RAILS_ROOT, 'config', 'environment')
end

it loads a rails project into irb, useful if you really should have run ./script/console ;-)</description>
		<content:encoded><![CDATA[<p>(I find) another useful method to add to your irbrc is : </p>
<p>def self.load_rails(from=&#8221;./&#8221;)<br />
  require File.expand_path(File.join(from,&#8221;config/boot&#8221;))<br />
  require File.join(RAILS_ROOT, &#8216;config&#8217;, &#8216;environment&#8217;)<br />
end</p>
<p>it loads a rails project into irb, useful if you really should have run ./script/console <img src='http://drnicwilliams.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Nic</title>
		<link>http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-39303</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Thu, 26 Jul 2007 08:32:10 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-39303</guid>
		<description>@stephaneliu [&lt;a href="http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-39300" rel="nofollow" rel="nofollow"&gt;via&lt;/a&gt;] - it is funny seeing "@stephaneliu" when you are replying to yourself. I might add "@me" and it could point to the previous comment (which we'd assume was your own).</description>
		<content:encoded><![CDATA[<p>@stephaneliu [<a href="http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-39300" rel="nofollow" rel="nofollow">via</a>] - it is funny seeing &#8220;@stephaneliu&#8221; when you are replying to yourself. I might add &#8220;@me&#8221; and it could point to the previous comment (which we&#8217;d assume was your own).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephaneliu</title>
		<link>http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-39300</link>
		<dc:creator>stephaneliu</dc:creator>
		<pubDate>Thu, 26 Jul 2007 08:07:27 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-39300</guid>
		<description>@stephaneliu [&lt;a href='http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-39299' rel="nofollow"&gt;via&lt;/a&gt;] - 

parser didn't like my syntax for second location of irbrc which is in the locomotive home/bin directory.</description>
		<content:encoded><![CDATA[<p>@stephaneliu [<a href='http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-39299' rel="nofollow">via</a>] - </p>
<p>parser didn&#8217;t like my syntax for second location of irbrc which is in the locomotive home/bin directory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephaneliu</title>
		<link>http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-39299</link>
		<dc:creator>stephaneliu</dc:creator>
		<pubDate>Thu, 26 Jul 2007 08:05:13 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-39299</guid>
		<description>I can modify the irbrc file on my windows machine but not on my mac that runs locomotive. I modified irbrc file in both ~/.irbrc and /...bin/.irbrc. Should the irbrc file be be in another location?</description>
		<content:encoded><![CDATA[<p>I can modify the irbrc file on my windows machine but not on my mac that runs locomotive. I modified irbrc file in both ~/.irbrc and /&#8230;bin/.irbrc. Should the irbrc file be be in another location?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Nic</title>
		<link>http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-38083</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Wed, 18 Jul 2007 07:25:08 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-38083</guid>
		<description>BTW, if you want to add &lt;code&gt;active_support&lt;/code&gt; to .irbrc, and you use Edge Rails, you must not preload the gem if its a rails console.

So instead of 
&lt;pre&gt;require 'active_support'&lt;/pre&gt;

Use:
&lt;pre&gt;
unless IRB.conf[:LOAD_MODULES].join =~ /config\\/environment/
  require 'active_support'
end
&lt;/pre&gt;

Until I did this I was getting errors like:

&lt;pre&gt;/vendor/rails/railties/lib/dispatcher.rb:94:NoMethodError: undefined method `attr_accessor_with_default' for #&#60;Class:Dispatcher&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>BTW, if you want to add <code>active_support</code> to .irbrc, and you use Edge Rails, you must not preload the gem if its a rails console.</p>
<p>So instead of </p>
<pre>require 'active_support'</pre>
<p>Use:</p>
<pre>
unless IRB.conf[:LOAD_MODULES].join =~ /config\\/environment/
  require &#8216;active_support&#8217;
end
</pre>
<p>Until I did this I was getting errors like:</p>
<pre>/vendor/rails/railties/lib/dispatcher.rb:94:NoMethodError: undefined method `attr_accessor_with_default' for #&lt;Class:Dispatcher></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Nic</title>
		<link>http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-9125</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Wed, 07 Mar 2007 05:53:13 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-9125</guid>
		<description>@dodo - I am in love with your .irbrc</description>
		<content:encoded><![CDATA[<p>@dodo - I am in love with your .irbrc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dodo</title>
		<link>http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-9122</link>
		<dc:creator>dodo</dc:creator>
		<pubDate>Wed, 07 Mar 2007 05:35:03 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-9122</guid>
		<description>Hey, do you guys know of any way to extend readline?
I've added some of my own commands to use script/console as an IDE:

http://blog.dominiek.com/articles/2007/03/05/destroying-the-wall-between-writing-and-executing-code</description>
		<content:encoded><![CDATA[<p>Hey, do you guys know of any way to extend readline?<br />
I&#8217;ve added some of my own commands to use script/console as an IDE:</p>
<p><a href="http://blog.dominiek.com/articles/2007/03/05/destroying-the-wall-between-writing-and-executing-code" rel="nofollow">http://blog.dominiek.com/articles/2007/03/05/destroying-the-wall-between-writing-and-executing-code</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bryan</title>
		<link>http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-7421</link>
		<dc:creator>bryan</dc:creator>
		<pubDate>Sat, 24 Feb 2007 04:30:06 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/#comment-7421</guid>
		<description>Works the same on Linux :)   Only some distros don't include headers for curses.  See http://blog.nanorails.com/articles/2006/03/06/installing-readline-on-kubuntu

for a fix</description>
		<content:encoded><![CDATA[<p>Works the same on Linux <img src='http://drnicwilliams.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Only some distros don&#8217;t include headers for curses.  See <a href="http://blog.nanorails.com/articles/2006/03/06/installing-readline-on-kubuntu" rel="nofollow">http://blog.nanorails.com/articles/2006/03/06/installing-readline-on-kubuntu</a></p>
<p>for a fix</p>
]]></content:encoded>
	</item>
</channel>
</rss>
