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"]

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s