# Error trying to create a static scaffold

**URL:** <https://www.ruby-forum.com/t/error-trying-to-create-a-static-scaffold/152174>\
**Category:** Rails\
**Created:** [October 30, 2008, 8:04pm UTC](https://www.ruby-forum.com/t/error-trying-to-create-a-static-scaffold/152174 "2008-10-30T20:04:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/91b2a8/32.png) [@deepa](https://www.ruby-forum.com/u/deepa)\
**Post date:** [October 30, 2008, 8:04pm UTC](https://www.ruby-forum.com/t/error-trying-to-create-a-static-scaffold/152174/1 "2008-10-30T20:04:51Z")

</div>

I’m a beginner. I get that error "wrong number of arguments (1 for 2).  
Please let me know why this is so. I’m copying the comand from the Agile  
Devpl. book. thanks, Deepa

RubyScripts\depot\>ruby script/generate scaffold product admin  
exists app/models/  
exists app/controllers/  
exists app/helpers/  
exists app/views/products  
exists app/views/layouts/  
exists test/functional/  
exists test/unit/  
exists public/stylesheets/  
wrong number of arguments (1 for 2)

---

<div class="post-metadata">

**Author:** ![deepa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/91b2a8/32.png) [@deepa](https://www.ruby-forum.com/u/deepa)\
**Post date:** [October 30, 2008, 8:27pm UTC](https://www.ruby-forum.com/t/error-trying-to-create-a-static-scaffold/152174/2 "2008-10-30T20:27:16Z")

</div>

On Oct 30, 7:04 pm, Deepa P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I’m a beginner. I get that error "wrong number of arguments (1 for 2).  
> Please let me know why this is so. I’m copying the comand from the Agile  
> Devpl. book. thanks, Deepa

your book is out of date. that generator looks like  
ruby script/generate scaffold product name:string description:text

would create a scaffold (probably not the same one your book  
describes) and a migration creating the appropriate table with a name  
column of type string and a text column called description.

Fred
