Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. = simple_form_for @park, html: { multipart: true, role: "form", class: "form-horizontal" } do |f|
  2. - if @park.errors.any?
  3. #error_explanation
  4. %h2= "#{pluralize(@park.errors.count, "error")} prohibited this park from being saved:"
  5. %ul
  6. - @park.errors.full_messages.each do |msg|
  7. %li= msg
  8.  
  9. = f.input :address, label: 'address', autofocus: true, placeholder: "123 Fake Street Irvine, CA 90123", class: "form-control"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement