Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve Devise error messages' deprecation warnings #42

Closed
rakvium opened this issue Oct 21, 2020 · 1 comment
Closed

Resolve Devise error messages' deprecation warnings #42

rakvium opened this issue Oct 21, 2020 · 1 comment
Labels
hacktoberfest you are free to make a pull request help wanted you are free to make a pull request

Comments

@rakvium
Copy link
Owner

rakvium commented Oct 21, 2020

DEPRECATION WARNING: [Devise] `DeviseHelper#devise_error_messages!` is deprecated and will be
removed in the next major version.

Devise now uses a partial under "devise/shared/error_messages" to display
error messages by default, and make them easier to customize. Update your
views changing calls from:

    <%= devise_error_messages! %>

to:

    <%= render "devise/shared/error_messages", resource: resource %>

To start customizing how errors are displayed, you can copy the partial
from devise to your `app/views` folder. Alternatively, you can run
`rails g devise:views` which will copy all of them again to your app.
 (called from block in _app_views_devise_registrations_new_html_erb__3296905225930654644_39740 at /home/sloboda/rails_projects/blog/app/views/devise/registrations/new.html.erb:5)
  Rendered devise/shared/_links.erb (Duration: 1.0ms | Allocations: 522)
  Rendered devise/registrations/new.html.erb within layouts/application (Duration: 5.6ms | Allocations: 3543)
  Rendered layouts/_shim.html.erb (Duration: 0.1ms | Allocations: 5)
  Rendered layouts/_header.html.erb (Duration: 3.4ms | Allocations: 489)
  Rendered layouts/_footer.html.erb (Duration: 0.3ms | Allocations: 96)
Completed 200 OK in 115ms (Views: 75.3ms | ActiveRecord: 4.8ms | Allocations: 81758)
@rakvium rakvium added help wanted you are free to make a pull request hacktoberfest you are free to make a pull request labels Oct 21, 2020
@rakvium
Copy link
Owner Author

rakvium commented Oct 22, 2020

Resolved in #44

@rakvium rakvium closed this as completed Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest you are free to make a pull request help wanted you are free to make a pull request
Projects
None yet
Development

No branches or pull requests

1 participant