i am unable to reach the login page when adding ''before_filter
:login_required'' to the application controller.
I HAVE added the following to my sessions controller
''before_filter :login_required, :except => [:new, :create,
:destroy]''
I figured this would overload the app controller filter but i get this
loop while it looks for sessions/new and isnt allowed there.
I am faced with adding the before_filter to all controllers now. There
must be a better way.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---