mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-28 11:11:07 -05:00
17 lines
401 B
Plaintext
17 lines
401 B
Plaintext
= form_for @role do |f|
|
|
- if @role.errors.any?
|
|
#error_explanation
|
|
%h2= "#{pluralize(@role.errors.count, "error")} prohibited this role from being saved:"
|
|
%ul
|
|
- @role.errors.full_messages.each do |msg|
|
|
%li= msg
|
|
|
|
.field
|
|
= f.label :name
|
|
= f.text_field :name
|
|
.field
|
|
= f.label :description
|
|
= f.text_area :description
|
|
.actions
|
|
= f.submit 'Save'
|