Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- = simple_form_for @park, html: { multipart: true, role: "form", class: "form-horizontal" } do |f|
- - if @park.errors.any?
- #error_explanation
- %h2= "#{pluralize(@park.errors.count, "error")} prohibited this park from being saved:"
- %ul
- - @park.errors.full_messages.each do |msg|
- %li= msg
- = 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