I’m a Richardson, RU?

30 Nov, 2006

Test First Development RaPT Error

Posted by: imarichardson In: Apple/Macintosh| Programming & Development

SEE IMPORTANT UPDATE ABOUT USING RAPT AT THE BOTTOM!

So I’m really liking the Peepcode.com tutorials available for Rails development. I just purchased the “Test-First Development” tutorial from the site and was cranking through until I got to the 14 minute mark where you use RaPT (a replacement for the Rails plugin script) to install the calendar_helper plugin and received the error

:/journal_app imarichardson$ script/plugin install http://topfunky.net/svn/plugins/calendar_helper 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.

when trying to install the “calendar_helper” plugin via RaPT. Apparently this is an error popping up for several folks. Here’s what I did to get by:

  • I downloaded the Firefox Rails Plugin Search Extension and searched for the “calendar_helper” plugin and got this page.
  • Instead of using the RaPT installer, I just used the basic rails plugin script below, providing the location I saw on the page listed in the previous step:
:/journal_app imarichardson$ script/plugin install http://topfunky.net/svn/plugins/calendar_helper + ./calendar_helper/MIT-LICENSE + ./calendar_helper/README + ./calendar_helper/Rakefile + ./calendar_helper/about.yml + ./calendar_helper/generators/calendar_styles/calendar_styles_generator.rb + ./calendar_helper/generators/calendar_styles/templates/blue/style.css + ./calendar_helper/generators/calendar_styles/templates/grey/style.css + ./calendar_helper/generators/calendar_styles/templates/red/style.css + ./calendar_helper/init.rb + ./calendar_helper/lib/calendar_helper.rb + ./calendar_helper/test/stylesheet_tester.html + ./calendar_helper/test/test_calendar_helper.rb

Beautiful … installation success!

UPDATE: Thanks from Manuel in the comments:

To be able to use rapt for these plugins you should first register the new sources as:

rapt source http://topfunky.net/svn/plugins

After this is done you should be able to install the plugin using:

rapt install calendar_helper

This apply to every new source repository for plugins.
I hope this will clarify why you were unable to install this.

Technorati Tags: ,

2 Responses to "Test First Development RaPT Error"

1 | Manuel Vidaurre

June 13th, 2007 at 2:04 am

Avatar

Something important it is miss in the tutorial. To be able to use rapt for these plugins you should first register the new sources as:

rapt source http://topfunky.net/svn/plugins

After this is done you should be able to install the plugin using:

rapt install calendar_helper

This apply to every new source repository for plugins.

I hope this will clarify why you were unable to install this.

Regards

2 | imarichardson

June 21st, 2007 at 8:04 am

Avatar

Thanks much Manuel! I’ll add it to the instructions.

Comment Form

You must be logged in to post a comment.

I'mARichardson Who?

Who am I? Well, let's see: I'm a husband, father, brother, God-father, down to earth, relaxed, happy kinda guy who likes clean code, long walks on the beach, takes his laptop with him everywhere he goes, and (as I'd like to think) all around good guy!