envythe
asked on
Restful Authentication Problem
I am getting the following error when I insert before_filter :login_required into any of my controllers.
undefined local variable or method `new_session_path' for #<EmployeesController:0x23 5a794>
/Users/tim/Desktop/bort/li b/authenti cated_syst em.rb:68:i n `access_denied'
/Library/Ruby/Gems/1.8/gem s/actionpa ck-2.3.2/l ib/action_ controller /mime_resp onds.rb:13 5:in `call'
/Library/Ruby/Gems/1.8/gem s/actionpa ck-2.3.2/l ib/action_ controller /mime_resp onds.rb:13 5:in `custom'
/Library/Ruby/Gems/1.8/gem s/actionpa ck-2.3.2/l ib/action_ controller /mime_resp onds.rb:17 9:in `call'
/Library/Ruby/Gems/1.8/gem s/actionpa ck-2.3.2/l ib/action_ controller /mime_resp onds.rb:17 9:in `respond'
/Library/Ruby/Gems/1.8/gem s/actionpa ck-2.3.2/l ib/action_ controller /mime_resp onds.rb:17 3:in `each'
/Library/Ruby/Gems/1.8/gem s/actionpa ck-2.3.2/l ib/action_ controller /mime_resp onds.rb:17 3:in `respond'
/Library/Ruby/Gems/1.8/gem s/actionpa ck-2.3.2/l ib/action_ controller /mime_resp onds.rb:10 7:in `respond_to'
/Users/tim/Desktop/bort/li b/authenti cated_syst em.rb:65:i n `access_denied'
/Users/tim/Desktop/bort/li b/role_req uirement_s ystem.rb:1 16:in `access_denied'
/Users/tim/Desktop/bort/li b/authenti cated_syst em.rb:53:i n `login_required'
/Library/Ruby/Gems/1.8/gem s/activesu pport-2.3. 2/lib/acti ve_support /callbacks .rb:178:in `send'
/Library/Ruby/Gems/1.8/gem s/activesu pport-2.3. 2/lib/acti ve_support /callbacks .rb:178:in `evaluate_method'
/Library/Ruby/Gems/1.8/gem s/activesu pport-2.3. 2/lib/acti ve_support /callbacks .rb:166:in `call'
/Library/Ruby/Gems/1.8/gem s/actionpa ck-2.3.2/l ib/action_ controller /filters.r b:225:in `call'
/Library/Ruby/Gems/1.8/gem s/actionpa ck-2.3.2/l ib/action_ controller /filters.r b:629:in `run_before_filters'
/Library/Ruby/Gems/1.8/gem s/actionpa ck-2.3.2/l ib/action_ controller /filters.r b:615:in `call_filters'
/Library/Ruby/Gems/1.8/gem s/actionpa ck-2.3.2/l ib/action_ controller /filters.r b:610:in `perform_action_without_be nchmark'
/Library/Ruby/Gems/1.8/gem s/actionpa ck-2.3.2/l ib/action_ controller /benchmark ing.rb:68: in `perform_action_without_re scue'
/Library/Ruby/Gems/1.8/gem s/activesu pport-2.3. 2/lib/acti ve_support /core_ext/ benchmark. rb:17:in `ms'
/Library/Ruby/Gems/1.8/gem s/activesu pport-2.3. 2/lib/acti ve_support /core_ext/ benchmark. rb:10:in `realtime'
/Library/Ruby/Gems/1.8/gem s/activesu pport-2.3. 2/lib/acti ve_support /core_ext/ benchmark. rb:17:in `ms'
/Library/Ruby/Gems/1.8/gem s/actionpa ck-2.3.2/l ib/action_ controller /benchmark ing.rb:68: in `perform_action_without_re scue'
/Library/Ruby/Gems/1.8/gem s/actionpa ck-2.3.2/l ib/action_ controller /rescue.rb :160:in `perform_action_without_fl ash'
/Library/Ruby/Gems/1.8/gem s/actionpa ck-2.3.2/l ib/action_ controller /flash.rb: 141:in `perform_action'
/Library/Ruby/Gems/1.8/gem s/actionpa ck-2.3.2/l ib/action_ controller /base.rb:5 23:in `send'
/Library/Ruby/Gems/1.8/gem s/actionpa ck-2.3.2/l ib/action_ controller /base.rb:5 23:in `process_without_filters'
/Library/Ruby/Gems/1.8/gem s/actionpa ck-2.3.2/l ib/action_ controller /filters.r b:606:in `sass_old_process'
/Library/Ruby/Gems/1.8/gem s/haml-2.2 .2/lib/sas s/plugin/r ails.rb:19 :in `process'
/Library/Ruby/Gems/1.8/gem s/actionpa ck-2.3.2/l ib/action_ controller /base.rb:3 91:in `process'
/Library/Ruby/Gems/1.8/gem s/actionpa ck-2.3.2/l ib/action_ controller /base.rb:3 86:in `call'
/Library/Ruby/Gems/1.8/gem s/actionpa ck-2.3.2/l ib/action_ controller /routing/r oute_set.r b:433:in `call'
Any ideas as to why this may be occuring?
undefined local variable or method `new_session_path' for #<EmployeesController:0x23
/Users/tim/Desktop/bort/li
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
/Users/tim/Desktop/bort/li
/Users/tim/Desktop/bort/li
/Users/tim/Desktop/bort/li
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
/Library/Ruby/Gems/1.8/gem
Any ideas as to why this may be occuring?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i have posted the solution
especially have you done what is outlined here:
http://agilewebdevelopment.com/plugins/restful_authentication
?
Regards
Friedrich