mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-27 19:23:59 -04:00
20 lines
465 B
Plaintext
20 lines
465 B
Plaintext
= form_for @update do |f|
|
|
- if @update.errors.any?
|
|
#error_explanation
|
|
%h2= "#{pluralize(@update.errors.count, "error")} prohibited this update from being saved:"
|
|
%ul
|
|
- @update.errors.full_messages.each do |msg|
|
|
%li= msg
|
|
|
|
.field
|
|
= f.label :user_id
|
|
= f.number_field :user_id
|
|
.field
|
|
= f.label :subject
|
|
= f.text_field :subject
|
|
.field
|
|
= f.label :body
|
|
= f.text_area :body
|
|
.actions
|
|
= f.submit 'Save'
|