project alert/error messages
This commit is contained in:
parent
b7614c714e
commit
ccfae82723
10 changed files with 101 additions and 63 deletions
|
@ -6,13 +6,9 @@
|
|||
= @project.name
|
||||
.clear
|
||||
- if @project.errors.any?
|
||||
#error_explanation
|
||||
%h2
|
||||
= pluralize(@project.errors.count, "error")
|
||||
prohibited this project from being saved:
|
||||
%ul
|
||||
- @project.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
%ul.errors_holder
|
||||
- @project.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
%table
|
||||
%tr
|
||||
%td= f.label :name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue