Skip to content

Commit

Permalink
modified index and show views
Browse files Browse the repository at this point in the history
  • Loading branch information
caleywoods committed Jul 9, 2011
1 parent d79d606 commit 4f9bad7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
17 changes: 15 additions & 2 deletions app/views/locations/index.html.erb
@@ -1,2 +1,15 @@
<h1>Location</h1>
<p>Welcome to Where's It At?!</p>
<h1>Locations</h1>
<br />
<% @locations.each do |location| %>
<b>Address:</b> <%= location.address %>
<br />
<b>Latitude:</b> <%= location.latitude %>
<br />
<b>Longitude:</b> <%= location.longitude %>
<br />
<%= link_to "View", location %>
<br />
<% end %>
<br />
<br />
<%= link_to "New", new_location_path %>
4 changes: 3 additions & 1 deletion app/views/locations/show.html.erb
@@ -1,5 +1,7 @@
Address: <%= @location.address %>
<h2><%= @location.address %></h2>
<br />
Latitude: <%= @location.latitude %>
<br />
Longitude: <%= @location.longitude %>
<br />
<%= link_to "Home", root_path %>

0 comments on commit 4f9bad7

Please sign in to comment.