BUTI would like to know why when i comment
require_role 'admin'
in my controller everything works fine but if i UNcomment it i have an error:
NameError in Asset/stationsController#index
uninitialized constant Asset::StationsController
I do understand that it is use to restrict access (to some actions) for the non-admin user.
log
Processing ApplicationController#index (for 127.0.0.1 at 2012-02-29 17:18:21) [GET]
Parameters: {"action"=>"index", "controller"=>"asset/stations"}
NameError (uninitialized constant Asset::StationsController):
its not calling
StationsController#index BUT ApplicationController#index