<?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>random utterings...: Tag peepcode</title>
    <link>http://blog.randomutterings.com/articles/tag/peepcode</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Rapt error during peepcodes test first development tutorial</title>
      <description>&lt;p&gt;OK, let me start off by saying, I love the tutorials from peepcode, you guys are doing a great job so keep doing it.&lt;/p&gt;

&lt;p&gt;Alas, I got stuck while watching the &lt;a href="http://peepcode.com/products/test-first-development"&gt;Test-first-development&lt;/a&gt; tutorial.  They were using &lt;a href="http://rapt.rubyforge.org/"&gt;Rapt&lt;/a&gt; as an alternative to script/plugin and when I tried to run it I kept getting an error.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Error: RaPT currently does not work outside of a Rails application directory.  Please change to the top level of a Rails application and try again.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This error is misleading but at least it was obviously misleading, after all I know I'm in my Rails application directory.&lt;/p&gt;

&lt;p&gt;After some googling, I found a post describing a work around for the problem, but it basically gave instructions on installing the plugin with script/plugin.  But the guys at peepcode had a reason for using rapt over script/plugin (its faster).  So I Google some more.  I finally find a &lt;a href="http://rubyforge.org/tracker/index.php?func=detail&amp;aid=6611&amp;group_id=1889&amp;atid=7384"&gt;bug &lt;/a&gt; on the Rapt &lt;a href="http://rubyforge.org/projects/rapt/"&gt;Trac&lt;/a&gt; posted in 2006 that explains that the user must first add repositories by executing the following.&lt;/p&gt;

&lt;pre&gt;
&lt;p&gt;rapt discover&lt;/p&gt;
&lt;/pre&gt;

&lt;p&gt;If anyone knows how to have it default to yes without prompting you for every repository, please post a comment.&lt;/p&gt;

&lt;p&gt;Alternatively, you can add only the repositories you want to use by executing the following.&lt;/p&gt;

&lt;pre&gt;
&lt;p&gt;rapt source http://path-to-repository&lt;/p&gt;
&lt;/pre&gt;

</description>
      <pubDate>Thu, 13 Sep 2007 12:47:00 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:a5ba1b07-1d85-4136-9454-4820007eb561</guid>
      <author>Chris Barnes</author>
      <link>http://blog.randomutterings.com/articles/2007/09/13/rapt-error-during-peepcodes-test-first-development-tutorial</link>
      <category>Ruby</category>
      <category>ruby</category>
      <category>rails</category>
      <category>rapt</category>
      <category>plugins</category>
      <category>peepcode</category>
      <category>tutorial</category>
      <category>screencast</category>
      <trackback:ping>http://blog.randomutterings.com/articles/trackback/22</trackback:ping>
    </item>
  </channel>
</rss>
