Hello, I did a fresh install of ruby182 and gem rails --include-dependencies Now when I do: rails receipts cd receipts ruby script\generate scaffold receipt receipt rails does not create the views or controller. What can I do? Thanks Frank
On 1/1/06, Frank Rocco <farocco@mac.com> wrote:> Hello, > > I did a fresh install of ruby182 and gem rails --include-dependencies > > Now when I do: > rails receipts > cd receipts > ruby script\generate scaffold receipt receipt > > rails does not create the views or controller. >Try ruby script\generate scaffold Receipt The scaffold generator wants either CamelCase names (e.g. Bob or SomeThing) or underscored ''Ruby-style'' names. The above command should create a receipt.rb model, and a receipts_controller.rb controller, along with the views, tests, etc.
I tried your suggestion, but it still does not create a controller or views. Frank ----- Original Message ----- From: "Wilson Bilkovich" <wilsonb@gmail.com> To: <rails@lists.rubyonrails.org> Sent: Sunday, January 01, 2006 4:15 PM Subject: Re: [Rails] scaffold not working on Windows XP On 1/1/06, Frank Rocco <farocco@mac.com> wrote:> Hello, > > I did a fresh install of ruby182 and gem rails --include-dependencies > > Now when I do: > rails receipts > cd receipts > ruby script\generate scaffold receipt receipt > > rails does not create the views or controller. >Try ruby script\generate scaffold Receipt The scaffold generator wants either CamelCase names (e.g. Bob or SomeThing) or underscored ''Ruby-style'' names. The above command should create a receipt.rb model, and a receipts_controller.rb controller, along with the views, tests, etc. _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails
does it say something about creating the table first? did you install the mysql gem? At 15:59 02/01/2006, you wrote:>I tried your suggestion, but it still does not create a controller or views. > >Frank >----- Original Message ----- From: "Wilson Bilkovich" <wilsonb@gmail.com> >To: <rails@lists.rubyonrails.org> >Sent: Sunday, January 01, 2006 4:15 PM >Subject: Re: [Rails] scaffold not working on Windows XP > > >On 1/1/06, Frank Rocco <farocco@mac.com> wrote: >>Hello, >> >>I did a fresh install of ruby182 and gem rails --include-dependencies >> >>Now when I do: >>rails receipts >>cd receipts >>ruby script\generate scaffold receipt receipt >> >>rails does not create the views or controller. >Try ruby script\generate scaffold Receipt >The scaffold generator wants either CamelCase names (e.g. Bob or >SomeThing) or underscored ''Ruby-style'' names. > >The above command should create a receipt.rb model, and a >receipts_controller.rb controller, along with the views, tests, etc.
I am using postgresql. Do I need to install anything? Thanks Frank ----- Original Message ----- From: "Borja Mart?n" <borjam@dagi3d.net> To: <rails@lists.rubyonrails.org> Sent: Monday, January 02, 2006 10:19 AM Subject: Re: [Rails] scaffold not working on Windows XP> does it say something about creating the table first? > did you install the mysql gem? > > At 15:59 02/01/2006, you wrote: >>I tried your suggestion, but it still does not create a controller or >>views. >> >>Frank >>----- Original Message ----- From: "Wilson Bilkovich" <wilsonb@gmail.com> >>To: <rails@lists.rubyonrails.org> >>Sent: Sunday, January 01, 2006 4:15 PM >>Subject: Re: [Rails] scaffold not working on Windows XP >> >> >>On 1/1/06, Frank Rocco <farocco@mac.com> wrote: >>>Hello, >>> >>>I did a fresh install of ruby182 and gem rails --include-dependencies >>> >>>Now when I do: >>>rails receipts >>>cd receipts >>>ruby script\generate scaffold receipt receipt >>> >>>rails does not create the views or controller. >>Try ruby script\generate scaffold Receipt >>The scaffold generator wants either CamelCase names (e.g. Bob or >>SomeThing) or underscored ''Ruby-style'' names. >> >>The above command should create a receipt.rb model, and a >>receipts_controller.rb controller, along with the views, tests, etc. > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Nevermind, I found gem install postgres-pr I feel foolish. Thanks for your help. Frank ----- Original Message ----- From: "Borja Mart?n" <borjam@dagi3d.net> To: <rails@lists.rubyonrails.org> Sent: Monday, January 02, 2006 10:19 AM Subject: Re: [Rails] scaffold not working on Windows XP> does it say something about creating the table first? > did you install the mysql gem? > > At 15:59 02/01/2006, you wrote: >>I tried your suggestion, but it still does not create a controller or >>views. >> >>Frank >>----- Original Message ----- From: "Wilson Bilkovich" <wilsonb@gmail.com> >>To: <rails@lists.rubyonrails.org> >>Sent: Sunday, January 01, 2006 4:15 PM >>Subject: Re: [Rails] scaffold not working on Windows XP >> >> >>On 1/1/06, Frank Rocco <farocco@mac.com> wrote: >>>Hello, >>> >>>I did a fresh install of ruby182 and gem rails --include-dependencies >>> >>>Now when I do: >>>rails receipts >>>cd receipts >>>ruby script\generate scaffold receipt receipt >>> >>>rails does not create the views or controller. >>Try ruby script\generate scaffold Receipt >>The scaffold generator wants either CamelCase names (e.g. Bob or >>SomeThing) or underscored ''Ruby-style'' names. >> >>The above command should create a receipt.rb model, and a >>receipts_controller.rb controller, along with the views, tests, etc. > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >