# Problem with script generate scaffolding

**URL:** <https://www.ruby-forum.com/t/problem-with-script-generate-scaffolding/135968>\
**Category:** Rails\
**Created:** [April 27, 2008, 8:24am UTC](https://www.ruby-forum.com/t/problem-with-script-generate-scaffolding/135968 "2008-04-27T08:24:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Phoenix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/4af34b/32.png) [@Michael\_Phoenix](https://www.ruby-forum.com/u/Michael_Phoenix)\
**Post date:** [April 27, 2008, 8:24am UTC](https://www.ruby-forum.com/t/problem-with-script-generate-scaffolding/135968/1 "2008-04-27T08:24:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Michael\_Phoenix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/4af34b/32.png) [@Michael\_Phoenix](https://www.ruby-forum.com/u/Michael_Phoenix)\
**Post date:** [April 27, 2008, 8:51am UTC](https://www.ruby-forum.com/t/problem-with-script-generate-scaffolding/135968/2 "2008-04-27T08:51:47Z")

</div>

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” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
