Improving all forms
This commit is contained in:
parent
6f7c9774c7
commit
43df35213e
16 changed files with 268 additions and 267 deletions
6
app/views/shared/_error_messages.html.haml
Normal file
6
app/views/shared/_error_messages.html.haml
Normal file
|
@ -0,0 +1,6 @@
|
|||
- if object.errors.any?
|
||||
.flash-message#error_explanation
|
||||
%strong
|
||||
Something isn't quite right yet! Please review
|
||||
= pluralize(object.errors.count, 'error')
|
||||
below:
|
Loading…
Add table
Add a link
Reference in a new issue