Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to save or update name "Unpermitted parameter: :name" #32

Open
nsafai opened this issue Dec 8, 2018 · 2 comments
Open

Unable to save or update name "Unpermitted parameter: :name" #32

nsafai opened this issue Dec 8, 2018 · 2 comments

Comments

@nsafai
Copy link

nsafai commented Dec 8, 2018

Right out of the box, it seems like the "name" parameter is not saving correctly.

However, this is easily fixed by adding the following to app/controllers/application_controller.rb:

class ApplicationController < ActionController::Base
  before_action :configure_permitted_parameters, if: :devise_controller?

  protected

  def configure_permitted_parameters
    devise_parameter_sanitizer.permit(:sign_up, keys: [:name])
    devise_parameter_sanitizer.permit(:account_update, keys: [:name])
  end
end
@nimplay
Copy link

nimplay commented Nov 16, 2022

Thanks for the help

@joao-felipe-bn
Copy link

It works for me, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants