Error using scaffolding in Rails 2.0

I need to use scaffolding to generate my model “Publisher” and
controller “admin/publisher” . I am running following ruby command and
getting error

script/generate scaffold Publisher ‘admin/publisher’

error

exists app/models/
exists app/controllers/
exists app/helpers/
create app/views/publishers
exists app/views/layouts/
exists test/functional/
exists test/unit/
exists public/stylesheets/
create app/views/publishers/index.html.erb
wrong number of arguments (1 for 2)

I know that scaffolding has been removed from Rails 2.0, however can’t
able to find any document for alternative solution.

Thanks
Amit

Bill W. wrote:

Also, you might want to work through this tutorial:

http://www.akitaonrails.com/2007/12/12/rolling-with-rails-2-0-the-first-full
-tutorial

Forgot one…

http://fairleads.blogspot.com/2007/12/rails-20-and-scaffolding-step-by-step.
html

Best regards,
Bill

Hi Amit,

Scaffolding changed substantially with 2.0. Google ‘rails 2.0
scaffolding’.
Also, you might want to work through this tutorial:
http://www.akitaonrails.com/2007/12/12/rolling-with-rails-2-0-the-first-full
-tutorial

[email protected] wrote:

I need to use scaffolding to generate my model “Publisher” and
controller “admin/publisher” . I am running following ruby command
and getting error

script/generate scaffold Publisher ‘admin/publisher’

HTH,
Bill

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