I have the rails 3.1 authentication set up, how do I get it to make sure I authenticate system wide?
If you want everything controller to use Authentication then I would suggest using a before_filter in the ApplicationController. Something like this
class ApplicationController < ActionController::Base before_filter: some_authentication_method end
Regards Robb
Use before_filter in ApplicationController class?
If by system wide you mean every action on every controller you can set up a before_filter on ApplicationController and check for the current_user there.
Hope it helps.
Cheers.
I am currently using the devise gem for authentication. It provides a great base for authentication so that you don't have to reinvent the wheel.