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.
 
 
 
 
 
 

25 lines
524 B

%h1 Listing locations
%table
%tr
%th Title
%th Address
%th Latitude
%th Longitude
%th
%th
%th
- @locations.each do |location|
%tr
%td= location.title
%td= location.address
%td= location.latitude
%td= location.longitude
%td= link_to 'Show', location
%td= link_to 'Edit', edit_location_path(location)
%td= link_to 'Destroy', location, :method => :delete, :data => { :confirm => 'Are you sure?' }
%br
= link_to 'New Location', new_location_path