# About scaffold

**URL:** <https://www.ruby-forum.com/t/about-scaffold/81101>\
**Category:** Ruby\
**Created:** [January 3, 2007, 11:08pm UTC](https://www.ruby-forum.com/t/about-scaffold/81101 "2007-01-03T23:08:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ronny\_Yabar\_Aizcorb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8edcca/32.png) [@Ronny\_Yabar\_Aizcorb](https://www.ruby-forum.com/u/Ronny_Yabar_Aizcorb)\
**Post date:** [January 3, 2007, 11:08pm UTC](https://www.ruby-forum.com/t/about-scaffold/81101/1 "2007-01-03T23:08:43Z")

</div>

Hi guys i already installed ruby, i started creating my first database  
an  
my table cliente, but when i’m trying to create the model and the  
controller  
with the command scaffold, i got a message " no such file or directory".  
when i type in my directory: script/generator scaffold cliente i got  
this  
message, what can be the problem, because a friend told me it works for  
him.  
Thanks for the answer.

–

Ronny Yabar Aizcorbe  
Software Developer  
----Linux Registered User #431942  
----E-Mail :ronnycrema85(at)[gmail.com](http://gmail.com)  
----Blog :[http://ronnyonline.blogspot.com](http://ronnyonline.blogspot.com)  
----Telefono fijo: (054)431792  
----Celular : (054)9791179

“Un hacker es aquella persona que le apasiona el conocimiento, descubrir  
o  
aprender nuevas cosas y entender el funcionamiento de Ã©stas.Los hackers  
resuelven problemas y construyen cosas, y creen en la libertad y la  
ayuda  
voluntaria mutua. Para ser aceptado como hacker,  
deberÃ¡s comportarte como si tuvieras esta actitud en tu interior. Y  
para comportarte como si tuvieras esta actitud, deberÃ¡s creerte de  
verdad dicha actitud.” Erick Raymond

---

<div class="post-metadata">

**Author:** ![Ronny\_Yabar\_Aizcorb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8edcca/32.png) [@Ronny\_Yabar\_Aizcorb](https://www.ruby-forum.com/u/Ronny_Yabar_Aizcorb)\
**Post date:** [January 3, 2007, 11:20pm UTC](https://www.ruby-forum.com/t/about-scaffold/81101/2 "2007-01-03T23:20:38Z")

</div>

Ronny Yabar Aizcorbe wrote:

> with the command scaffold, i got a message " no such file or directory".  
> when i type in my directory: script/generator scaffold cliente i got  
> this

My guess would be that you are not executing the command from your  
application directory or that you haven’t installed Rails yet…

p.s. Some here are hostile to rails related posts on the ruby forum,  
please ask them on the rails forums.

ilan

---

<div class="post-metadata">

**Author:** ![Ronny\_Yabar\_Aizcorb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8edcca/32.png) [@Ronny\_Yabar\_Aizcorb](https://www.ruby-forum.com/u/Ronny_Yabar_Aizcorb)\
**Post date:** [January 3, 2007, 11:22pm UTC](https://www.ruby-forum.com/t/about-scaffold/81101/3 "2007-01-03T23:22:48Z")

</div>

On Thu, 2007-01-04 at 07:07 +0900, Ronny Yabar Aizcorbe wrote:

> Hi guys i already installed ruby, i started creating my first database an  
> my table cliente, but when i’m trying to create the model and the controller  
> with the command scaffold, i got a message " no such file or directory".  
> when i type in my directory: script/generator scaffold cliente i got this  
> message, what can be the problem, because a friend told me it works for him.  
> Thanks for the answer.

You need an extra argument

script/generate scaffold

try script/generate scaffold  
(without arguments) for help with the arguments.

Also, As a newcomer myself, I’m going to caution you against using  
scaffolding. It will only cause you heartache and pain in the long run.  
And when you came back to ask for help, the experts around here will  
tell you to get rid of the scaffold code and code it by hand, of course  
they are kind enough to show you how too 🙂

Hope it helps

Matt

---

<div class="post-metadata">

**Author:** ![Ronny\_Yabar\_Aizcorb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8edcca/32.png) [@Ronny\_Yabar\_Aizcorb](https://www.ruby-forum.com/u/Ronny_Yabar_Aizcorb)\
**Post date:** [January 4, 2007, 12:27am UTC](https://www.ruby-forum.com/t/about-scaffold/81101/4 "2007-01-04T00:27:06Z")

</div>

On 1/3/07, Ilan B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Ronny Yabar Aizcorbe wrote:

> p.s. Some here are hostile to rails related posts on the ruby forum,  
> please ask them on the rails forums.

It’s usually just sound advice to point people towards the rails  
community since it is a more direct route to help and also because  
the list volume is quite high here and a rails focus would make it  
even higher.
