can’t you just create a controller like /script/generate controller
You know what, I thought the same thing (and even tried it). Then
after seeing your email, I decided to try it again with a new Rails
application, and everything worked as expected! This confused me quite
a bit, and figured I had just done something incorrect in my original
application. So, I copied the controllers from the new application to
my existing application, but it still didn’t work.
Confused as to why this might be happening, I started duplicating as
much of my existing application to this newly created application
trying to find the point where things broke. What I discovered was
that everything worked right up to the point where I drop in Edge
Rails to get the 1.1 goodness that’s included there.
So now my question is, what has changed in 1.1 that would cause these
problems? I have detailed my specific application layout below.
base_controller.rb (Base < AC)
base_controller.rb (Admin::Base < Base)
location_controller.rb (Admin::LocationController <
details_controller.rb (Admin::Tabs::DetailsController <
The error I get when trying to navigate to /admin/tabs/details is
“uninitialized constant Admin::LocationController”. Here is the stack
trace that is generated:
I’m going to start digging around the 1.1 source and see what has
changed since 1.0 in the files listed above. Thanks.