Displaying 1 result from an estimated 1 matches for "hangar_controller".
2006 Jan 18
1
Another uninitialized constant question
...uys,
I''m trying to generate a scaffold to admin a table called hangars. I''d
like the controller to fall with an "admin" sub-module.
I used the command:
script/generate scaffold Hangar Admin::Hangar
This seemed to work, and placed the controller in
controllers/admin/hangar_controller.rb, where I expected to find it. It
also created the hangar.rb model in app/models/hangar.rb.
However, now I get (when trying to connect to admin/hangar):
NameError in Admin/hangar#index
uninitialized constant Hangar
RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full...