Unable to save or update name "Unpermitted parameter: :name"
nsafai opened this issue · comments
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
Thanks for the help
It works for me, thanks.