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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060404/067f984e/attachment.html
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 4/4/06, Mariano Sokal <marianosokal@siisa.com.ar> wrote:> > > > 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 > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
I did what you said, then oponed radrails from that console but still happens. Thanks, Mariano -----Mensaje original----- De: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] En nombre de Curt Hibbs Enviado el: Martes, 04 de Abril de 2006 06:05 p.m. Para: rails@lists.rubyonrails.org Asunto: Re: [Rails] odd error 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 4/4/06, Mariano Sokal <marianosokal@siisa.com.ar> wrote:> > > > 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 > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >_______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails
What files go you have in your Rails app''s "script" directory? It sounds like the "generate" script file is missing. In mine I have these file: about breakpointer console destroy generate plugin runner server Curt On 4/4/06, Mariano Sokal <marianosokal@siisa.com.ar> wrote:> I did what you said, then oponed radrails from that console but still happens. > > Thanks, > Mariano > > -----Mensaje original----- > De: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] En nombre de Curt Hibbs > Enviado el: Martes, 04 de Abril de 2006 06:05 p.m. > Para: rails@lists.rubyonrails.org > Asunto: Re: [Rails] odd error > > 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 4/4/06, Mariano Sokal <marianosokal@siisa.com.ar> wrote: > > > > > > > > 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 > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
It seems that is the problem, because I have instant rails... and there?s no scripts folder in c:\instantrails\rails_apps... I have just cookbook and typo-2.6.0 Mariano -----Mensaje original----- De: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] En nombre de Curt Hibbs Enviado el: Mi?rcoles, 05 de Abril de 2006 12:39 a.m. Para: rails@lists.rubyonrails.org Asunto: Re: [Rails] odd error What files go you have in your Rails app''s "script" directory? It sounds like the "generate" script file is missing. In mine I have these file: about breakpointer console destroy generate plugin runner server Curt On 4/4/06, Mariano Sokal <marianosokal@siisa.com.ar> wrote:> I did what you said, then oponed radrails from that console but still happens. > > Thanks, > Mariano > > -----Mensaje original----- > De: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] En nombre de Curt Hibbs > Enviado el: Martes, 04 de Abril de 2006 06:05 p.m. > Para: rails@lists.rubyonrails.org > Asunto: Re: [Rails] odd error > > 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 4/4/06, Mariano Sokal <marianosokal@siisa.com.ar> wrote: > > > > > > > > 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 > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails
Mariano Sokal wrote:> It seems that is the problem, because I have instant rails... and > there?s no scripts folder in c:\instantrails\rails_apps... I have just > cookbook and typo-2.6.0Inside either cookbook, or type-2.6.0 you should see the script directory. A. -- Posted via http://www.ruby-forum.com/.
Hi Mariano, The scripts folder is at the top level; same level as the app folder, not inside it. Have a look there and let us know. hth, Bill ----- Original Message ----- From: "Mariano Sokal" <marianosokal@siisa.com.ar> To: <rails@lists.rubyonrails.org> Sent: 2006-04-05 9:41 AM Subject: RE: [Rails] odd error It seems that is the problem, because I have instant rails... and there?s no scripts folder in c:\instantrails\rails_apps... I have just cookbook and typo-2.6.0 Mariano -----Mensaje original----- De: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] En nombre de Curt Hibbs Enviado el: Mi?rcoles, 05 de Abril de 2006 12:39 a.m. Para: rails@lists.rubyonrails.org Asunto: Re: [Rails] odd error What files go you have in your Rails app''s "script" directory? It sounds like the "generate" script file is missing. In mine I have these file: about breakpointer console destroy generate plugin runner server Curt On 4/4/06, Mariano Sokal <marianosokal@siisa.com.ar> wrote:> I did what you said, then oponed radrails from that console but stillhappens.> > Thanks, > Mariano > > -----Mensaje original----- > De: rails-bounces@lists.rubyonrails.org[mailto:rails-bounces@lists.rubyonrails.org] En nombre de Curt Hibbs> Enviado el: Martes, 04 de Abril de 2006 06:05 p.m. > Para: rails@lists.rubyonrails.org > Asunto: Re: [Rails] odd error > > 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 4/4/06, Mariano Sokal <marianosokal@siisa.com.ar> wrote: > > > > > > > > Hello everybody. > > > > I have just started trying rails, got instant rails and radrails... Madea 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 > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails
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. Mariano Sokal wrote:> > 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 > > ------------------------------------------------------------------------ > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >