diff --git a/app/views/locations/index.html.erb b/app/views/locations/index.html.erb index f13c2e9..1b0e61a 100644 --- a/app/views/locations/index.html.erb +++ b/app/views/locations/index.html.erb @@ -1,2 +1,15 @@ -

Location

-

Welcome to Where's It At?!

+

Locations

+
+<% @locations.each do |location| %> + Address: <%= location.address %> +
+ Latitude: <%= location.latitude %> +
+ Longitude: <%= location.longitude %> +
+ <%= link_to "View", location %> +
+<% end %> +
+
+<%= link_to "New", new_location_path %> diff --git a/app/views/locations/show.html.erb b/app/views/locations/show.html.erb index 3d80d65..134b860 100644 --- a/app/views/locations/show.html.erb +++ b/app/views/locations/show.html.erb @@ -1,5 +1,7 @@ -Address: <%= @location.address %> +

<%= @location.address %>


Latitude: <%= @location.latitude %>
Longitude: <%= @location.longitude %> +
+<%= link_to "Home", root_path %>