app/controllers/application_controller.rb
def configure_permitted_parameters
    devise_parameter_sanitizer.for(:sign_up) do |u|
      u.permit :username, :email, :password, :password_confirmation
    end
    devise_parameter_sanitizer.for(:sign_in) { |u| u.permit(:username, :password, :remember_me) }
  end
# 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
    devise_parameter_sanitizer.for(:sign_up) do |u|
      u.permit :username, :email, :password, :password_confirmation
    end
    devise_parameter_sanitizer.for(:sign_in) { |u| u.permit(:username, :password, :remember_me) }
  end
def configure_permitted_parameters devise_parameter_sanitizer . for ( :sign_up ) do | u | u . permit :username , :email , :password , :password_confirmation end devise_parameter_sanitizer . for ( :sign_in ) { | u | u . permit ( :username , :password , :remember_me ) } end
Prevent CSRF attacks by raising an exception.
Prevent CSRF attacks by raising an exception .