mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-30 12:45:48 -04:00
Improved program efficiency (in querying in particular) by replacing .count and .length with .size for collections. Fix error in refactoring Reverted some .size into .count
17 lines
400 B
Plaintext
17 lines
400 B
Plaintext
= form_for @role do |f|
|
|
- if @role.errors.any?
|
|
#error_explanation
|
|
%h2= "#{pluralize(@role.errors.size, "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'
|