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

15 lines
307 B
Plaintext

- 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