BikeBikeBike/app/views/locations/_form.html.haml

23 lines
542 B
Plaintext
Raw Normal View History

2014-03-09 14:43:33 -06:00
= form_for @location do |f|
- if @location.errors.any?
#error_explanation
%h2= "#{pluralize(@location.errors.count, "error")} prohibited this location from being saved:"
%ul
- @location.errors.full_messages.each do |msg|
%li= msg
.field
= f.label :title
= f.text_field :title
.field
= f.label :address
= f.text_field :address
.field
= f.label :latitude
= f.text_field :latitude
.field
= f.label :longitude
= f.text_field :longitude
.actions
= f.submit 'Save'