problem with script generate scaffolding

0 views
Skip to first unread message

Michael Phoenix

unread,
Apr 27, 2008, 2:24:15 AM4/27/08
to rubyonra...@googlegroups.com
I'm going through the rolling with ruby on rails tutorial and I have hit a snag. When I get to the part where I enter the command line given by the tutorial in order to generate scaffold, I get the following:

C:\ruby\rails_apps\cookbook2>ruby script\generate scaffold recipe recipe
      exists  app/models/
      exists  app/controllers/
      exists  app/helpers/
      create  app/views/recipes
      exists  app/views/layouts/
      exists  test/functional/
      exists  test/unit/
      create  app/views/recipes/index.html.erb
wrong number of arguments (1 for 2)

This doesn't make sense, I gave it all the arguments the tutorial told me to give and i have done all the previous steps. Some help here would be appreciated.

o_O

unread,
Apr 27, 2008, 2:51:06 AM4/27/08
to Ruby on Rails: Talk
Scaffold generation works differently in rails 2 (which you have
installed) and rails < 2.0 (which the tutorial is assuming you are
using).

My suggestion would be to either install the version of rails required
by the tutorial or get a new tutorial.

On Apr 27, 9:24 am, "Michael Phoenix" <michaelandrewphoe...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages