remove old alert messages

This commit is contained in:
Dmitriy Zaporozhets 2013-01-30 16:53:18 +02:00
parent e2fb18a3ec
commit b742f47e89
35 changed files with 42 additions and 36 deletions

View file

@ -35,7 +35,7 @@
.padded
%p.slead After successful password update you will be redirected to login page where you should login with new password
-if @user.errors.any?
.alert-message.block-message.error
.alert.alert-error
%ul
- @user.errors.full_messages.each do |msg|
%li= msg

View file

@ -15,7 +15,7 @@
= form_for @user, url: profile_path, method: :put, html: { class: "edit_user form-horizontal" } do |f|
-if @user.errors.any?
%div.alert-message.block-message.error
%div.alert.alert-error
%ul
- @user.errors.full_messages.each do |msg|
%li= msg