Bike!Bike! Website!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
542 B

= 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'