mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-29 20:25:09 -04:00
Fixing deprecation warning by devise
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
= bootstrap_form_for(resource, as: resource_name,
|
||||
url: session_path(resource_name),
|
||||
html: { class: "text-center border border-light p-5" }) do |f|
|
||||
= devise_error_messages!
|
||||
= f.text_field :login, label: 'Login', required: true
|
||||
= f.password_field :password, type: "password"
|
||||
- if devise_mapping.rememberable?
|
||||
|
||||
9
app/views/devise/shared/_error_messages.html.haml
Normal file
9
app/views/devise/shared/_error_messages.html.haml
Normal file
@@ -0,0 +1,9 @@
|
||||
- if resource.errors.any?
|
||||
#error_explanation
|
||||
%h2
|
||||
= I18n.t("errors.messages.not_saved", |
|
||||
count: resource.errors.count, |
|
||||
resource: resource.class.model_name.human.downcase) |
|
||||
%ul
|
||||
- resource.errors.full_messages.each do |message|
|
||||
%li= message
|
||||
Reference in New Issue
Block a user