Forum: Ruby on Rails odd error

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Mariano S. (Guest)
on 2006-04-04 23: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

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,

Curt H. (Guest)
on 2006-04-05 01: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.

Dan Apostol (Guest)
on 2006-04-06 11: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.


This topic is locked and can not be replied to.