Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NameError (undefined local variable or method `devise_parameter_sanitizer'

Tags:

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

like image 551
Mark charlton Avatar asked May 17 '13 15:05

Mark charlton


1 Answers

try to use rails4 branch

gem 'devise', github: 'plataformatec/devise', branch: 'rails4'
like image 88
Fivell Avatar answered Sep 24 '22 21:09

Fivell