I'm using devise for user authentication. However, when a user tries to create an account I am getting this error:
NameError (undefined local variable or method `devise_parameter_sanitizer'
This is what my devise registrations controller looks like:
def sign_up_params
devise_parameter_sanitizer.for(:sign_up)
end
Any ideas?
Thanks in advance
try to use rails4 branch
gem 'devise', github: 'plataformatec/devise', branch: 'rails4'
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