From 2929bdb0c8c608f920726e3bbed5693c0523e473 Mon Sep 17 00:00:00 2001 From: Eisuke Oishi Date: Wed, 9 Nov 2016 15:53:40 +0900 Subject: [PATCH] Show error messages --- app/views/kuroko2/users/edit.html.slim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/views/kuroko2/users/edit.html.slim b/app/views/kuroko2/users/edit.html.slim index 2644e114..841f80fc 100644 --- a/app/views/kuroko2/users/edit.html.slim +++ b/app/views/kuroko2/users/edit.html.slim @@ -14,6 +14,12 @@ .box-header h2.box-title ##{@user.id} #{@user.name_was} .box-body.table-responsive + - if @user.errors.present? + .row + ul.alert.alert-danger + - @user.errors.full_messages.each do |message| + li #{message} + .row .col-md-2.visible-lg-block.visible-md-block img.img-circle src='#{@user.image}' alt="#{@user.name_was}"