# Problem with scaffold

**URL:** <https://www.ruby-forum.com/t/problem-with-scaffold/108376>\
**Category:** Rails\
**Created:** [July 2, 2007, 10:14pm UTC](https://www.ruby-forum.com/t/problem-with-scaffold/108376 "2007-07-02T22:14:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandip\_Gangakhedkar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ba8739/32.png) [@Sandip\_Gangakhedkar](https://www.ruby-forum.com/u/Sandip_Gangakhedkar)\
**Post date:** [July 2, 2007, 10:14pm UTC](https://www.ruby-forum.com/t/problem-with-scaffold/108376/1 "2007-07-02T22:14:08Z")

</div>

Ive created a new rails app, alongwith the dev database, model and  
controller(admin)…when i use scaffold an error pops up -  
NameError in AdminController#index  
uninitialized constant Dy

Im clueless…please help

---

<div class="post-metadata">

**Author:** ![Sandip\_Gangakhedkar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ba8739/32.png) [@Sandip\_Gangakhedkar](https://www.ruby-forum.com/u/Sandip_Gangakhedkar)\
**Post date:** [July 3, 2007, 4:13am UTC](https://www.ruby-forum.com/t/problem-with-scaffold/108376/2 "2007-07-03T04:13:46Z")

</div>

Sandip Gangakhedkar wrote:

> Ive created a new rails app, alongwith the dev database, model and  
> controller(admin)…when i use scaffold an error pops up -  
> NameError in AdminController#index  
> uninitialized constant Dy

You haven’t provided nearly enough detail for anyone to be able to help  
you. Post a step by step description of what you did, what happened, and  
what you expected to happen.

Oh, and posting your question a second time because you didn’t get an  
answer the first time is considered bad form.

Pete Y.

> **[Pete Yandell — Principal Engineer / Architect](https://notahat.com/)**
>
> Pete Yandell is an experienced Principal Software Engineer and Architect based in Melbourne, Australia.

---

<div class="post-metadata">

**Author:** ![Sandip\_Gangakhedkar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ba8739/32.png) [@Sandip\_Gangakhedkar](https://www.ruby-forum.com/u/Sandip_Gangakhedkar)\
**Post date:** [July 3, 2007, 9:09am UTC](https://www.ruby-forum.com/t/problem-with-scaffold/108376/3 "2007-07-03T09:09:19Z")

</div>

Here is a step by step route i took:

1. rails materials
2. mysqladmin -u root create materials\_development
3. created model named Die
4. modified create\_dies migration and raked it
5. created controller Admin
6. added scaffold :die
