Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Authlogic admin subsite

Following this tutorial getting the following errors:

 NameError in Admin/dashboardsController#show

uninitialized constant Admin::DashboardsController



 NameError in Admin sessionController#new

uninitialized constant Admin::AdminHelper

not sure how to correct this!

like image 823
MrThomas Avatar asked Nov 15 '22 11:11

MrThomas


1 Answers

Make sure you have the follwing correct

  1. Admin::WhateverController is under RAILS_ROOT/app/controllers/admin/ directory.
  2. Admin::WhateverHelper is under RAILS_ROOT/app/helpers/admin/ directory
  3. Admin::WhateverController should be named as dashboards_controller.rb
  4. Admin::WhateverHelper should be named as dashboards_helper.rb
like image 63
Aaron Qian Avatar answered Dec 30 '22 02:12

Aaron Qian