Commit a66bd1e

mo khan <mo@mokhan.ca>
2013-06-23 05:08:17
add google map to identify where the need is
1 parent c1d5e36
Changed files (1)
app
views
app/views/needs/show.html.erb
@@ -4,7 +4,8 @@
     <p class="lead"><%= @need.description %></p>
   </div>
   <div class="span6">
-    You can contact me <a href="mailto:<%= @need.user.email %>"><%= @need.user.email %></a>
+    <p>You can contact me <a href="mailto:<%= @need.user.email %>"><%= @need.user.email %></a></p>
+    <%= image_tag "http://maps.google.com/maps/api/staticmap?size=450x300&sensor=false&zoom=16&markers=#{@need.latitude}%2C#{@need.longitude}" %>
   </div>
 </div>