I am trying to use:
before_filter :authenticate_member!
before_filter :authenticate_user!
current_member
current_user
in my controller (not at the same time, of course). None of these names could be found. I have installed Devise according to manual: https://github.com/plataformatec/devise
Restarting server after changing the line does not help.
Ugly Rails defaults! If the user model's name is Restuser
then the calls should be:
before_filter :authenticate_restuser!
and
current_restuser
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With