Hi All, I am working the 20 minute wiki tutorial http://sl33p3r.free.fr/tutorials/rails/wiki/wiki-en.html. Right at the beginning after I get my web server up I try to create the Page model in the command line: script/generate model Page After I hit Enter nothing happens. I''ve searched online and used the ruby invoker, but still nothing happens. I recently installed the latest version of RoR on my mac leopard, and installed all the gems, so everything should be up to date. Am I missing something? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
rails newapp cd newapp ruby script/generate model Page does that give anything? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
heimdull wrote:> rails newapp > cd newapp > ruby script/generate model Page > > does that give anything?Hi heimdull, Yes, it generates the following, which is what shows in the tutorial: exists app/models/ exists test/unit/ exists test/fixtures/ create app/models/page.rb create test/unit/page_test.rb create test/fixtures/pages.yml create db/migrate create db/migrate/20080926000217_create_pages.rb I forgot to mention I am running latest version of the mongrel server. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi all, I am still experiencing this problem. I tried installing the latest version of RoR and mogrel again, but I am still experiencing this problem. If anyone has any idea as to why this may be happening, please reply! I''m really excited about my first journey into RoR and web programming, but this is killing me! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Sep 27, 4:03 am, Chris To <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi all, > > I am still experiencing this problem. I tried installing the latest > version of RoR and mogrel again, but I am still experiencing this > problem. If anyone has any idea as to why this may be happening, please > reply! I''m really excited about my first journey into RoR and web > programming, but this is killing me! >Well the version of mongrel is irrelevant - it''s not even running at this point. I have on occasion seen a slightly odd thing where ruby had printed something like ''Do you want to overwrite x'' but that prompt doesn''t show up unless you hit enter or otherwise force the window to redraw itself (eg resize) Fred> -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> On Sep 27, 4:03�am, Chris To <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> Hi all, >> >> I am still experiencing this problem. I tried installing the latest >> version of RoR and mogrel again, but I am still experiencing this >> problem. If anyone has any idea as to why this may be happening, please >> reply! I''m really excited about my first journey into RoR and web >> programming, but this is killing me! >> > > Well the version of mongrel is irrelevant - it''s not even running at > this point. I have on occasion seen a slightly odd thing where ruby > had printed something like ''Do you want to overwrite x'' but that > prompt doesn''t show up unless you hit enter or otherwise force the > window to redraw itself (eg resize) > > FredHi Fred, The problem is when I''ve already entered the script/server and got the welcome aboard screen when I point my browser to port 3000. If I don''t start the server, I generate the model. How is mongrel not running irrelevant, all the evidence points to the webserver being the problem.. Thanks for the reply. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Thu, Sep 25, 2008 at 5:09 PM, Chris To <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > heimdull wrote: >> rails newapp >> cd newapp >> ruby script/generate model Page> Yes, it generates the following, which is what shows in the tutorial: > > exists app/models/ > exists test/unit/ > exists test/fixtures/ > create app/models/page.rb > create test/unit/page_test.rb > create test/fixtures/pages.yml > create db/migrate > create db/migrate/20080926000217_create_pages.rbthen what''s the problem? -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Sent from my iPhone On 27 Sep 2008, at 16:18, Chris To <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Frederick Cheung wrote: >> On Sep 27, 4:03�am, Chris To <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wr >> ote: >>> Hi all, >>> >>> I am still experiencing this problem. I tried installing the latest >>> version of RoR and mogrel again, but I am still experiencing this >>> problem. If anyone has any idea as to why this may be happening, >>> please >>> reply! I''m really excited about my first journey into RoR and web >>> programming, but this is killing me! >>> >> >> Well the version of mongrel is irrelevant - it''s not even running at >> this point. I have on occasion seen a slightly odd thing where ruby >> had printed something like ''Do you want to overwrite x'' but that >> prompt doesn''t show up unless you hit enter or otherwise force the >> window to redraw itself (eg resize) >> >> Fred > > Hi Fred, > > The problem is when I''ve already entered the script/server and got the > welcome aboard screen when I point my browser to port 3000. If I don''t > start the server, I generate the model. How is mongrel not running > irrelevant, all the evidence points to the webserver being the > problem.. >Well that''s the first time you''ve said that running a mongrel makes a difference as far as I can tell. When it hangs when running the generator do you know where it is blocked? (eg if you control c it do you get an interesting backtrace)?> Thanks for the reply. > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hassan Schroeder wrote:> On Thu, Sep 25, 2008 at 5:09 PM, Chris To > <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> >> heimdull wrote: >>> rails newapp >>> cd newapp >>> ruby script/generate model Page > >> Yes, it generates the following, which is what shows in the tutorial: >> >> exists app/models/ >> exists test/unit/ >> exists test/fixtures/ >> create app/models/page.rb >> create test/unit/page_test.rb >> create test/fixtures/pages.yml >> create db/migrate >> create db/migrate/20080926000217_create_pages.rb > > then what''s the problem? > > -- > Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.orgHi Hassan, I only generate the above when I am not running the webserver. However, if I first do script/server, and then script/generate model Page, I get nothing. I hope I am explaining this clearly. If not, I''ll try to get a print screen that better shows the problem. Thanks for the response! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> Sent from my iPhone > > On 27 Sep 2008, at 16:18, Chris To <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: > >>>> reply! I''m really excited about my first journey into RoR and web >> >> Hi Fred, >> >> The problem is when I''ve already entered the script/server and got the >> welcome aboard screen when I point my browser to port 3000. If I don''t >> start the server, I generate the model. How is mongrel not running >> irrelevant, all the evidence points to the webserver being the >> problem.. >> > Well that''s the first time you''ve said that running a mongrel makes a > difference as far as I can tell. When it hangs when running the > generator do you know where it is blocked? (eg if you control c it do > you get an interesting backtrace)?Hi Fred, Sorry about that, I didn''t realize I only mentioned mongrel once in my posts. Here is what I get: => Booting Mongrel (use ''script/server webrick'' to force WEBrick) => Rails 2.1.1 application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server ** Starting Mongrel listening at 0.0.0.0:3000 ** Starting Rails with development environment... ** Rails loaded. ** Loading any Rails specific GemPlugins ** Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart). ** Rails signals registered. HUP => reload (without restart). It might not work well. ** Mongrel 1.1.5 available at 0.0.0.0:3000 ** Use CTRL-C to stop. script/generate model Page (Nothing happens...then I just press cntrl + C) ^C** INT signal received. Exiting I hope this helps. Thanks for helping me with my question. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Sat, Sep 27, 2008 at 12:58 PM, Chris To <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I only generate the above when I am not running the webserver. However, > if I first do script/server, and then script/generate model Page, I get > nothing. I hope I am explaining this clearly.You need to do these commands from a shell prompt. Once you''ve started the server in a window, you no longer have that prompt. So open another window (or tab) to run other commands. -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---