Following this tutorial getting the following errors:
NameError in Admin/dashboardsController#show
uninitialized constant Admin::DashboardsController
NameError in Admin sessionCo开发者_如何学Gontroller#new
uninitialized constant Admin::AdminHelper
not sure how to correct this!
Make sure you have the follwing correct
- Admin::WhateverController is under RAILS_ROOT/app/controllers/admin/ directory.
- Admin::WhateverHelper is under RAILS_ROOT/app/helpers/admin/ directory
- Admin::WhateverController should be named as dashboards_controller.rb
- Admin::WhateverHelper should be named as dashboards_helper.rb
精彩评论