Displaying 1 result from an estimated 1 matches for "passwd_reset".
2008 May 06
12
Why before_filter is not working?
I have been scratching my head on this one for most of the day.
Hopefully someone can help explain why before_filter isn''t working for
my codes.
In my Application controller, I have this:
before_filter :login_required, :except =>
[:newacct, :create_newacct, :passwd_reset ]
def login_required
unless session[:user_id]
flash[:notice] = "Please log in"
redirect_to new_session_url
end
end
I have the passwd_reset method defined in my Users controller.
My intention is if I call the method /users/passwd_reset it should
skip executing the...