Module: DeviseHelper
- Defined in:
- app/helpers/devise_helper.rb
Instance Method Summary collapse
-
#devise_error_messages! ⇒ Object
Retain this method for backwards compatibility, deprecated in favor of modifying the devise/shared/error_messages partial.
Instance Method Details
#devise_error_messages! ⇒ Object
Retain this method for backwards compatibility, deprecated in favor of modifying the devise/shared/error_messages partial.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'app/helpers/devise_helper.rb', line 6 def Devise.deprecator.warn " [Devise] `DeviseHelper#devise_error_messages!` is deprecated and will be\n removed in the next major version.\n\n Devise now uses a partial under \"devise/shared/error_messages\" to display\n error messages by default, and make them easier to customize. Update your\n views changing calls from:\n\n <%= devise_error_messages! %>\n\n to:\n\n <%= render \"devise/shared/error_messages\", resource: resource %>\n\n To start customizing how errors are displayed, you can copy the partial\n from devise to your `app/views` folder. Alternatively, you can run\n `rails g devise:views` which will copy all of them again to your app.\n DEPRECATION\n\n return \"\" if resource.errors.empty?\n\n render \"devise/shared/error_messages\", resource: resource\nend\n".strip_heredoc |