Friday, June 23, 2006

protect?() doesn't work for salted login generator

For rail's salted login generator, the protect?() method didn't work for me. So for those of you that can't get it to work, instead of messing around with it, use the other syntax instead.
before_filter :login_required, :except => ["login", "logout", "signup", "index",
"welcome", "change_password", "forgot_password"]

No comments:

Post a Comment