简体   繁体   中英

Devise devise_error_messages! shows up without any event

I have a devise_helper.rb file where I have:

module DeviseHelper
  def devise_error_messages!
    'Looks like you missing a password'
  end
end

But whenever I go to /user/sign_up , it shows up. I wonder why that's still showing up without an action?

Take a look at the devise helper file

devise_error_messages! is just a stub. You need to override it with your own implementation of the error messages you want or copy the views to your app and change them to your preference. It looks like you are just printing out 'Looks like you missing a password' the way you have it now. Hope this helps point you in the right direction.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM