# Error using scaffolding in Rails 2.0

**URL:** <https://www.ruby-forum.com/t/error-using-scaffolding-in-rails-2-0/147611>\
**Category:** Rails\
**Created:** [September 3, 2008, 5:03pm UTC](https://www.ruby-forum.com/t/error-using-scaffolding-in-rails-2-0/147611 "2008-09-03T17:03:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 3, 2008, 5:03pm UTC](https://www.ruby-forum.com/t/error-using-scaffolding-in-rails-2-0/147611/1 "2008-09-03T17:03:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 3, 2008, 5:36pm UTC](https://www.ruby-forum.com/t/error-using-scaffolding-in-rails-2-0/147611/2 "2008-09-03T17:36:41Z")

</div>

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](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](http://fairleads.blogspot.com/2007/12/rails-20-and-scaffolding-step-by-step).  
html

Best regards,  
Bill

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 3, 2008, 5:33pm UTC](https://www.ruby-forum.com/t/error-using-scaffolding-in-rails-2-0/147611/3 "2008-09-03T17:33:10Z")

</div>

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](http://www.akitaonrails.com/2007/12/12/rolling-with-rails-2-0-the-first-full)  
-tutorial

removed\_email\_address@domain.invalid 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
