Files
growstuff/app/views/updates/_form.html.haml
2012-11-08 11:04:42 +00:00

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'