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
on 2006-04-04 21:35
on 2006-04-04 23:05
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
on 2006-04-06 09:52
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.