--The sign_up screen does not save even if you enter the user name --I can't save to DB for some reason with rollback transaction
--Introducing devise and adding a new column
(this time: username column)
--The error message is translated into Japanese
--I don't understand the English error, so Japaneseize devise and
[Correct "translation missing" after Devise Japaneseization] See (https://poinorou.hatenablog.com/entry/2019/09/16/090336)
to application_controller
application_controller
class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
before_action :configure_permitted_parameters, if: :devise_controller?
def configure_permitted_parameters
devise_parameter_sanitizer.permit(:sign_up, keys: [:username])
end
end
Fill in: ok_hand:
Recommended Posts