I have installed InstantRails and run through the Getting Started tutorial. Everything seems to work fine until I try to create a new rails app. Here are the steps I am taking: 1 - Start InstantRails (resides in c:\InstantRails) 2 - "I" > Rails Applicaitons > Manage Rails Applications 3 - Click "Create New Rails App (open console window) 4 - Type "rails testapp" 5 - Receive error: ruby: Permission denied -- E:/Dev/RubyDev/InstantRails-Project/InstantRails-win/ InstantRails/ruby/bin/rails (LoadError) Is there something I am doing wrong? Thanks in advance for any help! Aaron
On 5/5/06, Aaron Forgue <forgue at gmail.com> wrote (snipped big-time):> > 1 - Start InstantRails (resides in c:\InstantRails) > [...] > > ruby: Permission denied -- E:/Dev/RubyDev/InstantRails-Project/InstantRails-win/ > InstantRails/ruby/bin/rails (LoadError)That''s a really ugly path; where did it come from? Shouldn''t it be something like C:\InstantRails\ruby\bin\rails, given where you have InstantRails installed? My suggestion: make sure you can open a DOS box, type "ruby -v" or "rails toy-project" and not get an error. That means setting your PATH environment variable appropriately. Any follow-up questions welcome, of course. Cheers, Gavin
I have no idea where that path came from - but E: is one of my cd drives. I did all of this out of the box without any tweaking. When you say "open a DOS box", do you mean through InstantRails, or just Run > "cmd" ? If I do it through InstantRails, "ruby -v" gives me "ruby 1.8.4 (2005-12-24) [i386-mswin32]" (rails toy-project gives me the original error). If I do it through Run > cmd, "ruby -v" returns an error saying ''ruby'' is unrecognized. Aaron On 5/4/06, Gavin Sinclair <gsinclair at gmail.com> wrote:> On 5/5/06, Aaron Forgue <forgue at gmail.com> wrote (snipped big-time): > > > > 1 - Start InstantRails (resides in c:\InstantRails) > > [...] > > > > ruby: Permission denied -- E:/Dev/RubyDev/InstantRails-Project/InstantRails-win/ > > InstantRails/ruby/bin/rails (LoadError) > > That''s a really ugly path; where did it come from? > > Shouldn''t it be something like C:\InstantRails\ruby\bin\rails, given > where you have InstantRails installed? > > My suggestion: make sure you can open a DOS box, type "ruby -v" or > "rails toy-project" and not get an error. That means setting your > PATH environment variable appropriately. > > Any follow-up questions welcome, of course. > > Cheers, > Gavin > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users >
On 5/5/06, Aaron Forgue <forgue at gmail.com> wrote:> I have no idea where that path came from - but E: is one of my cd drives.So you have a CD in the drive?> I did all of this out of the box without any tweaking. When you say > "open a DOS box", do you mean through InstantRails, or just Run > > "cmd" ?Run > "cmd" At the DOS box, type "path" and see what it gives you. In Control Panel > System > Advanced > Environment Variables, tweak your path. You want "C:\InstantRails\ruby\bin" at the *beginning* of the path. BTW, check in Explorer that I''ve got the right directory first. The directory should have files like ruby.bat, irb.bat, and so on. This may not solve all the problems, but it will put your InstantRails system on a stable footing :) Cheers, Gavin
I know where that path came from. That''s the path on my machine where I do the Instant Rails development. It should have been updated to your installation path when you started up Instant Rails for the first time. Let me try to duplicate this and I''ll post back shortly. Curt On 5/4/06, Gavin Sinclair <gsinclair at gmail.com> wrote:> > On 5/5/06, Aaron Forgue <forgue at gmail.com> wrote: > > I have no idea where that path came from - but E: is one of my cd > drives. > > So you have a CD in the drive? > > > I did all of this out of the box without any tweaking. When you say > > "open a DOS box", do you mean through InstantRails, or just Run > > > "cmd" ? > > Run > "cmd" > > At the DOS box, type "path" and see what it gives you. > > In Control Panel > System > Advanced > Environment Variables, tweak > your path. You want "C:\InstantRails\ruby\bin" at the *beginning* of > the path. > > BTW, check in Explorer that I''ve got the right directory first. The > directory should have files like ruby.bat, irb.bat, and so on. > > This may not solve all the problems, but it will put your InstantRails > system on a stable footing :) > > Cheers, > Gavin > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060504/3428c742/attachment.htm
Its working fine here. Something must have gone wrong when Instant Rails was doing its path relocation. Let''s try forcing Instant Rails to do the relocation again. The easiest way to do that is to rename the Instant Rails installaton directory (you can rename it back later), and then start up Instant Rails. Be sure to answer "yes" when it asks if you want to regenerate the configuration files. Now edit <instantrails-dir>\ruby\bin\rails.cmd and verify that it contains the correct path. Curt On 5/4/06, Curt Hibbs <curt.hibbs at gmail.com> wrote:> > I know where that path came from. That''s the path on my machine where I do > the Instant Rails development. It should have been updated to your > installation path when you started up Instant Rails for the first time. > > Let me try to duplicate this and I''ll post back shortly. > > Curt > > On 5/4/06, Gavin Sinclair <gsinclair at gmail.com> wrote: > > > On 5/5/06, Aaron Forgue <forgue at gmail.com> wrote: > > > I have no idea where that path came from - but E: is one of my cd > > drives. > > > > So you have a CD in the drive? > > > > > I did all of this out of the box without any tweaking. When you say > > > "open a DOS box", do you mean through InstantRails, or just Run > > > > "cmd" ? > > > > Run > "cmd" > > > > At the DOS box, type "path" and see what it gives you. > > > > In Control Panel > System > Advanced > Environment Variables, tweak > > your path. You want "C:\InstantRails\ruby\bin" at the *beginning* of > > the path. > > > > BTW, check in Explorer that I''ve got the right directory first. The > > directory should have files like ruby.bat, irb.bat, and so on. > > > > This may not solve all the problems, but it will put your InstantRails > > system on a stable footing :) > > > > Cheers, > > Gavin > > > > _______________________________________________ > > Instantrails-users mailing list > > Instantrails-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/instantrails-users > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060504/b4e75957/attachment-0001.htm
Worked like a charm. Thanks guys! On 5/4/06, Curt Hibbs <curt.hibbs at gmail.com> wrote:> Its working fine here. Something must have gone wrong when Instant Rails was > doing its path relocation. Let''s try forcing Instant Rails to do the > relocation again. > > The easiest way to do that is to rename the Instant Rails installaton > directory (you can rename it back later), and then start up Instant Rails. > Be sure to answer "yes" when it asks if you want to regenerate the > configuration files. > > Now edit <instantrails-dir>\ruby\bin\rails.cmd and verify > that it contains the correct path. > > Curt > > > > On 5/4/06, Curt Hibbs < curt.hibbs at gmail.com> wrote: > > > > I know where that path came from. That''s the path on my machine where I do > the Instant Rails development. It should have been updated to your > installation path when you started up Instant Rails for the first time. > > > > Let me try to duplicate this and I''ll post back shortly. > > > > > > Curt > > > > > > > > > > On 5/4/06, Gavin Sinclair <gsinclair at gmail.com> wrote: > > > > > On 5/5/06, Aaron Forgue <forgue at gmail.com> wrote: > > > > I have no idea where that path came from - but E: is one of my cd > drives. > > > > > > So you have a CD in the drive? > > > > > > > I did all of this out of the box without any tweaking. When you say > > > > "open a DOS box", do you mean through InstantRails, or just Run > > > > > "cmd" ? > > > > > > Run > "cmd" > > > > > > At the DOS box, type "path" and see what it gives you. > > > > > > In Control Panel > System > Advanced > Environment Variables, tweak > > > your path. You want "C:\InstantRails\ruby\bin" at the *beginning* of > > > the path. > > > > > > BTW, check in Explorer that I''ve got the right directory first. The > > > directory should have files like ruby.bat, irb.bat, and so on. > > > > > > This may not solve all the problems, but it will put your InstantRails > > > system on a stable footing :) > > > > > > Cheers, > > > Gavin > > > > > > _______________________________________________ > > > Instantrails-users mailing list > > > Instantrails-users at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/instantrails-users > > > > > > > > > > > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > >