14 lines
344 B
Plaintext
14 lines
344 B
Plaintext
= form_for @region do |f|
|
|
- if @region.errors.any?
|
|
#error_explanation
|
|
%h2= "#{pluralize(@region.errors.count, "error")} prohibited this region from being saved:"
|
|
%ul
|
|
- @region.errors.full_messages.each do |msg|
|
|
%li= msg
|
|
|
|
.field
|
|
= f.label :name
|
|
= f.text_field :name
|
|
.actions
|
|
= f.submit 'Save'
|