ruby on rails - Devise strong parameters not working? -
i have beingness next instructions devise github's on sign giving warning
warning: can't mass-assign protected attributes user: email, password, password_confirmation
here code snippets
registrationcontroller
class registrationcontroller < devise::registrationscontroller private def account_update_params params.require(:user).permit( :email, :password, :password_confirmation, :current_password) end def sign_up_params params.require(:user).permit(:email, :password, :password_confirmation) end end
ruby-on-rails ruby-on-rails-4 devise
No comments:
Post a Comment