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/pluginsAfter this is done you should be able to install the plugin using:
rapt install calendar_helperThis apply to every new source repository for plugins.
I hope this will clarify why you were unable to install this.
Technorati Tags: RaPT, RubyOnRails
Feedback