sms-pager/app/views/children/_form.html.haml

15 lines
307 B
Plaintext
Raw Normal View History

2015-10-03 19:16:46 -05:00
- if @child.errors.full_messages.any?
.errors
%h1 Uh oh!
- @child.errors.full_messages.each do |error|
%p= error
= form_for @child, as: :child, url: add_child_path do |f|
= f.label :first_name
= f.text_field :first_name
= f.label :last_name
= f.text_field :last_name
= f.submit