Problem with script generate scaffolding

I’m going through the rolling with ruby on rails tutorial and I have hit
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

Scaffold generation works differently in rails 2 (which you have
installed) and rails < 2.0 (which the tutorial is assuming you are

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” [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs