Skip to content

Commit

Permalink
Added google maps image to Locations#show and tweaked _form partial.
Browse files Browse the repository at this point in the history
  • Loading branch information
caleywoods committed Jul 9, 2011
1 parent 4f9bad7 commit 7455fbd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
8 changes: 0 additions & 8 deletions app/views/locations/_form.html.erb
Expand Up @@ -3,13 +3,5 @@
<%= f.label :address %><br />
<%= f.text_field :address %>
</p>
<p>
<%= f.label :latitude %><br />
<%= f.text_field :latitude %>
</p>
<p>
<%= f.label :longitude %><br />
<%= f.text_field :longitude %>
</p>
<p><%= f.submit %></p>
<% end %>
1 change: 1 addition & 0 deletions app/views/locations/index.html.erb
Expand Up @@ -9,6 +9,7 @@
<br />
<%= link_to "View", location %>
<br />
<br />
<% end %>
<br />
<br />
Expand Down
2 changes: 2 additions & 0 deletions app/views/locations/show.html.erb
Expand Up @@ -4,4 +4,6 @@ Latitude: <%= @location.latitude %>
<br />
Longitude: <%= @location.longitude %>
<br />
<%= image_tag "http://maps.google.com/maps/api/staticmap?size=450x300&sensor=false&zoom=12&markers=#{@location.latitude}%2C#{@location.longitude}" %>
<br />
<%= link_to "Home", root_path %>

0 comments on commit 7455fbd

Please sign in to comment.