From 4f9bad7e0fbffe46d91475ffbeb8462833527a8a Mon Sep 17 00:00:00 2001 From: Caley Woods Date: Sat, 9 Jul 2011 13:58:56 -0500 Subject: [PATCH] modified index and show views --- app/views/locations/index.html.erb | 17 +++++++++++++++-- app/views/locations/show.html.erb | 4 +++- 2 files changed, 18 insertions(+), 3 deletions(-) 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 %>