# Controller issue with rails? (OSX)

**URL:** <https://www.ruby-forum.com/t/controller-issue-with-rails-osx/52483>\
**Category:** Ruby\
**Created:** [January 14, 2006, 11:58pm UTC](https://www.ruby-forum.com/t/controller-issue-with-rails-osx/52483 "2006-01-14T23:58:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joseph\_G](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ea5d25/32.png) [@Joseph\_G](https://www.ruby-forum.com/u/Joseph_G)\
**Post date:** [January 14, 2006, 11:58pm UTC](https://www.ruby-forum.com/t/controller-issue-with-rails-osx/52483/1 "2006-01-14T23:58:38Z")

</div>

hello,  
I created a table in MySQL and generated a scaffold against the  
database with a product named “article” and the controller named  
“admin”, but when i try to load up the /admin view i get the  
following stack trace. I am new to rails so I am not sure about the  
nature of this error. Stack trace as follows.

BR\_joe

NameError in Admin#index

uninitialized constant Article  
RAILS\_ROOT: script/…/config/…

/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active\_support/  
dependencies.rb:200:in `const_missing' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/ core_ext/string/../../inflector.rb:149:in`constantize’  
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active\_support/  
core\_ext/string/inflections.rb:52:in `constantize' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/ pagination.rb:186:in`paginator\_and\_collection\_for’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action\_controller/  
pagination.rb:124:in `paginate' ./script/../config/../app/controllers/admin_controller.rb:8:in`list’  
./script/…/config/…/app/controllers/admin\_controller.rb:3:in `index' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/ base.rb:853:in`perform\_action\_without\_filters’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action\_controller/  
filters.rb:332:in `perform_action_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/ benchmarking.rb:69:in`perform\_action\_without\_rescue’  
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/ benchmarking.rb:69:in`perform\_action\_without\_rescue’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action\_controller/  
rescue.rb:82:in `perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/ base.rb:369:in`process\_without\_session\_management\_support’  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action\_controller/  
session\_management.rb:116:in `process' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:38:in`dispatch’  
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick\_server.rb:117:in  
`handle_dispatch' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:83:in`service’  
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in`run’  
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:in`start\_thread’  
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start' /usr/lib/ruby/1.8/webrick/server.rb:92:in`start’  
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start' /usr/lib/ruby/1.8/webrick/server.rb:82:in`start’  
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick\_server.rb:69:in  
`dispatch' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/servers/ webrick.rb:59 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in`require’  
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active\_support/  
dependencies.rb:214:in `require' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/server.rb:28 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in`require’  
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active\_support/  
dependencies.rb:214:in `require’  
script/server:3  
This error occured while loading the following files:  
article.rb

---

<div class="post-metadata">

**Author:** ![Joseph\_G](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ea5d25/32.png) [@Joseph\_G](https://www.ruby-forum.com/u/Joseph_G)\
**Post date:** [January 15, 2006, 12:16am UTC](https://www.ruby-forum.com/t/controller-issue-with-rails-osx/52483/2 "2006-01-15T00:16:45Z")

</div>

On Jan 14, 2006, at 5:56 PM, Joseph G. wrote:

> hello,  
> I created a table in MySQL and generated a scaffold against the  
> database with a product named “article” and the controller named  
> “admin”, but when i try to load up the /admin view i get the  
> following stack trace. I am new to rails so I am not sure about  
> the nature of this error. Stack trace as follows.
> 
> BR\_joe

This would be better directed here:

removed\_email\_address@domain.invalid
