app/controllers/application_controller.rb
## add a username to the devise paramters
add a username to the devise paramters
add a username to the devise paramters
def configure_permitted_parameters
    devise_parameter_sanitizer.permit(:sign_up, keys:[:username, :email])
    devise_parameter_sanitizer.permit(:account_update, keys: [:username, :email, :password])
    devise_parameter_sanitizer.permit(:sign_in, keys:[:username, :email])
  end
def configure_permitted_parameters devise_parameter_sanitizer . permit ( :sign_up , keys : [ :username , :email ] ) devise_parameter_sanitizer . permit ( :account_update , keys : [ :username , :email , :password ] ) devise_parameter_sanitizer . permit ( :sign_in , keys : [ :username , :email ] ) end
add a username to the devise paramters
add a username to the devise paramters