Error display partial added
This commit is contained in:
parent
33e4173abf
commit
a9f8b74a95
1 changed files with 6 additions and 0 deletions
6
app/views/shared/_error_messages.slim
Normal file
6
app/views/shared/_error_messages.slim
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
- if target.errors.any?
|
||||||
|
div id="errorExplanation"
|
||||||
|
h2 Errors
|
||||||
|
ul
|
||||||
|
- target.errors.full_messages.each do |msg|
|
||||||
|
li = msg
|
||||||
Loading…
Add table
Add a link
Reference in a new issue