# Dynamic scaffold not working

**URL:** <https://www.ruby-forum.com/t/dynamic-scaffold-not-working/93060>\
**Category:** Rails\
**Created:** [April 27, 2007, 1:25am UTC](https://www.ruby-forum.com/t/dynamic-scaffold-not-working/93060 "2007-04-27T01:25:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Felipe\_SodrSSSS\_Sil](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/cab0a1/32.png) [@Felipe\_SodrSSSS\_Sil](https://www.ruby-forum.com/u/Felipe_SodrSSSS_Sil)\
**Post date:** [April 27, 2007, 1:25am UTC](https://www.ruby-forum.com/t/dynamic-scaffold-not-working/93060/1 "2007-04-27T01:25:49Z")

</div>

Hi.

I created a model called “player” using rake db:migration and right  
after  
went to try a dynamic scaffold to try it.  
So I created a controller called “admin” and the admin\_controller.rb  
became  
like this:

class AdminController \< ApplicationController  
scaffold :player  
end

but when I tried [http://localhost:3000/admin/](http://localhost:3000/admin/), I got this error message:

uninitialized constant Player

Then I created the scaffold statically by doing script\generate scaffold  
player

Now, I can try to access the admin controller and everything goes nice.

I tried to destroy the static scaffold, but then the error came back.

I’m using Ruby on Rails on Windows XP, using Mongrel as server. Is there  
any  
configuration I should set to make the dynamic scaffold work? I’m  
following  
the RoR book steps, and there’s nothing about this error there.

Thanks in advance

–  
Felipe Sodre S. Silva  
Engenharia de ComputaÃ§Ã£o - Universidade Estadual de Campinas  
+55 11 9604-1118  
removed\_email\_address@domain.invalid  
[http://www.students.ic.unicamp.br/~ra032714](http://www.students.ic.unicamp.br/~ra032714)
