Answer the question
In order to leave comments, you need to log in
Is the Devise gem ( devise_parameter_sanitizer ) not working or am I missing something?
Hello everyone, in the controller the following lines:
before_filter :configure_permitted_parameters, :only => [:create]
protected
def configure_permitted_parameters
devise_parameter_sanitizer.for(:sign_up) { |u| u.permit(:email, :password,:password_confirmation, :company) }
devise_parameter_sanitizer.for(:account_update) { |u| u.permit(:email, :password, :password_confirmation, :current_password, :company) }
end
Answer the question
In order to leave comments, you need to log in
No, you shouldn't. It only cuts off all unspecified parameters. And about tags - in rails, all strings are safe by default, they are automatically escaped before being returned, unless you explicitly specify the opposite. Those. In your case, you can leave everything as it is now.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question