# Problems getting the scaffold command working properly

**URL:** <https://www.ruby-forum.com/t/problems-getting-the-scaffold-command-working-properly/134801>\
**Category:** Rails\
**Created:** [April 15, 2008, 9:46am UTC](https://www.ruby-forum.com/t/problems-getting-the-scaffold-command-working-properly/134801 "2008-04-15T09:46:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![durgesh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/eb9ed0/32.png) [@durgesh](https://www.ruby-forum.com/u/durgesh)\
**Post date:** [April 15, 2008, 9:46am UTC](https://www.ruby-forum.com/t/problems-getting-the-scaffold-command-working-properly/134801/1 "2008-04-15T09:46:20Z")

</div>

hello folks!!

```
 i am very interested in working on RoR, so what i did was to get

```

started on this framework. So what i did was to get hold of some  
tutorials…ok let me come to the point

1. first and foremost i created 3 databases: contact\_development,  
contact\_production, contact\_test. In each of these databases i created  
a table called “people”. in each of these tables i entered 2 record  
sets.  
2.Then i went to c:/ruby and typed this command: rails -d mysql  
contact
2. Next what i did is typed this command: ruby script/generate  
scaffold Person
3. then this command: ruby script/server
4. now, when i browse to this url: [http://localhost:3000/people](http://localhost:3000/people), it  
shows me the listing for the 2 records, however the actual values do  
not display, what i mean to say is that there r 2 rows each with show,  
edit, destroy links but not the values from the DB against them…

also in the edit and the add pages i do not get the corresponding  
text boxes…however all the other buttons like “back” submit" are  
there…also if i explicitly make changes in the view files then the  
text boxes appear and the values get submitted to the db  
correctly…

```
please can anyone tell me what mistake i might have made, due to

```

which this problem occurs? i shall be really grateful to u guys…

---

<div class="post-metadata">

**Author:** ![durgesh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/eb9ed0/32.png) [@durgesh](https://www.ruby-forum.com/u/durgesh)\
**Post date:** [April 15, 2008, 11:21am UTC](https://www.ruby-forum.com/t/problems-getting-the-scaffold-command-working-properly/134801/2 "2008-04-15T11:21:54Z")

</div>

On 15 Apr 2008, at 08:45, durgesh wrote:

> sets.  
> You don’t really wanted to be editing the database schema yourself.  
> That’s what migrations are fore

> 2.Then i went to c:/ruby and typed this command: rails -d mysql  
> contact  
> 3. Next what i did is typed this command: ruby script/generate  
> scaffold Person  
> 4. then this command: ruby script/server  
> 5. now, when i browse to this url: [http://localhost:3000/people](http://localhost:3000/people), it  
> shows me the listing for the 2 records, however the actual values do  
> not display, what i mean to say is that there r 2 rows each with show,  
> edit, destroy links but not the values from the DB against them…

The issue here is that the scaffolding has changed substantially since  
the tutorials you are following were written (it’s no longer a dynamic  
scaffold). This has caused a certain amount of confusion but there  
have been some helpful posts here and blog articles that help bridge  
the gap (i’m sure you’ll be able to find them now you know what the  
problem is.  
The executive summary is that now you’d type something like ruby  
script/generate person name:string age:integer address:string

Fred

---

<div class="post-metadata">

**Author:** ![durgesh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/eb9ed0/32.png) [@durgesh](https://www.ruby-forum.com/u/durgesh)\
**Post date:** [April 15, 2008, 11:52am UTC](https://www.ruby-forum.com/t/problems-getting-the-scaffold-command-working-properly/134801/3 "2008-04-15T11:52:01Z")

</div>

oh thanks a ton dude! that worked for me…thanks a lot…really  
grateful to u…

On Apr 15, 10:20 am, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
