Forum: Ruby on Rails odd error

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
D9beee1f14843a52244d849793694ae3?d=identicon&s=25 Mariano Sokal (Guest)
on 2006-04-04 21:35
(Received via mailing list)
Hello everybody.

I have just started trying rails, got instant rails and radrails... Made
a new project, and when I tried to create a model I get the following
error:



Project> ruby script/generate model user -h

-e:3:in `load': no such file to load -- script/generate (LoadError)

            from -e:3



I´m sure this is a newbie question, I´ve searched the documentation and
couldn´t find what I am doing wrong.



Best regards,

Mariano
C475cffda1800fbc3f3af17bc10c220f?d=identicon&s=25 Curt Hibbs (Guest)
on 2006-04-04 23:05
(Received via mailing list)
Make sure you open your console window through Instant Rails (I>Rails
Applications>Open Ruby Console Window).

This is important because it makes sure that the INstant Rails
ruby\bin directory is on your path.

Curt
Ecae5e4b5fcfcc730b4f66061f91ee8a?d=identicon&s=25 Dan Apostol (Guest)
on 2006-04-06 09:52
(Received via mailing list)
Hi Mariano!

You need to declare in RadRails in Window-> Preferences the path to
Ruby, and Rails, of course, as follows:

for Ruby : Window->Preferences->Ruby->Installed Interpreter->Add :
_Name:_ *ruby* ; _Location_: *d:\work\instantRails\ruby\bin\ruby.exe*
(modify the path with yours one)
for Rails: Window->Preferences->Rails->Rails Installs -> Add : _Name_:
*rails*; _Location_: *d:\work\instantRails\ruby *(the same as above,
modify the path.... do not add any bin subfolder here :) )

Recreate your project and you'll see that it will create the skeleton
and the model creation will work.

Greetings,

Dan.
This topic is locked and can not be replied to.