app/controllers/application_controller.rb
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
Prevent CSRF attacks by raising an exception.
For APIs, you may want to use :null_session instead.
Prevent CSRF attacks by raising an exception . For APIs you may want to use : null_session instead .
def configure_permitted_parameters
    permitted_parameters = devise_parameter_sanitizer.instance_values['permitted']
    attributes = [:username, :email, :password, :password_confirmation, :remember_me, :current_password]
    attributes.each do |attribute|
      permitted_parameters[:sign_up] << attribute
      permitted_parameters[:sign_in] << attribute
      permitted_parameters[:account_update] << attribute
    end
  end
def configure_permitted_parameters permitted_parameters = devise_parameter_sanitizer . instance_values [ 'permitted' ] attributes = [ :username , :email , :password , :password_confirmation , :remember_me , :current_password ] attributes . each do | attribute | permitted_parameters [ :sign_up ] << attribute permitted_parameters [ :sign_in ] << attribute permitted_parameters [ :account_update ] << attribute end end
Prevent CSRF attacks by raising an exception.
Prevent CSRF attacks by raising an exception .