However, I had to make sure I didn’t already have an admin_controller.rb
at the root.
The admin_controller.rb in the /admin directory of /admin/model1 was
attempting to call an action “model1”. Maybe there’s a way to make the
controller ignore that and execute the /admin/model1_controller.rb
instead.
But for now, I deleted the admin_controller.rb on the root.
The admin_controller.rb in the /admin directory of /admin/model1 was
attempting to call an action “model1”. Maybe there’s a way to make the
controller ignore that and execute the /admin/model1_controller.rb
instead.
Is there anyway to use static scaffolds, have an admin_controller and
have the model1_controller and model2_controllers in the /admin/
directory? I would like to be able to have admin go to railsapp/admin
and then be able to click links to go to the actions to crud model1 and
model2 but still have static scaffolds to work with.