다음을 시도했지만 작동하지 않습니다. 여전히 기본 플래시 메시지를 사용하고 있습니다.Devise의 맞춤 플래시 메시지는 어떻게 만듭니 까?
class Users::SessionsController < Devise::SessionsController
after_action :custom_welcome, :only => [:create]
def custom_welcome
flash.notice = "Welcome back "+current_user.name+"." if flash.keys.include?(:notice)
end
end
참조 : https://github.com/plataformatec/devise#configuring-controllers
https://stackoverflow.com/a/5513172/148844
이 질문에 대답하지 않습니다. –