Reputation: 11212
I just upgraded to Devise 1.2 and now I can login, but then when I go to another page and the before_filter calls authenticate_account! (because my model is 'account', not 'user') it returns false, meaning I'm not logged it. It's as if the session cookie isn't getting created. What would cause this? I can't figure out how to track down what could be causing this. Thanks.
Upvotes: 2
Views: 290
Reputation: 11167
or add before_filter :authenticate_user! in application controller
class ApplicationController < ActionController::Base
before_filter :authenticate_user!
protect_from_forgery
end
Upvotes: 2
Reputation: 48606
You have to create this for your before filter in your controllers:
before_filter :authenticate_user!
Upvotes: 1