Commit dd30a7c1

mo khan <mo@mokhan.ca>
2014-05-14 04:38:27
remove map.
1 parent 2f0c90d
Changed files (2)
app
controllers
views
app/controllers/profiles_controller.rb
@@ -10,10 +10,6 @@ class ProfilesController < ApplicationController
     @user = User.find(params[:id])
     @creations = @user.creations.includes([:user, :photos]).page(params[:page]).per(18)
     @nearby_users = @user.nearbys(50) || []
-    @map_url = "https://maps.google.com/maps/api/staticmap?size=450x300&sensor=false&markers=#{@user.latitude}%2C#{@user.longitude}"
-    @nearby_users.each do |user|
-      @map_url += "&markers=#{user.latitude}%2C#{user.longitude}"
-    end
     expires_in(1.hour)
   end
 
app/views/profiles/show.html.erb
@@ -26,7 +26,6 @@
       <% @nearby_users.each do |item| %>
         <li><%= link_to item.name, profile_path(item), :class => "mix-link", "data-event" => "click-on-nearby-user" %> <small><%= item.city %></small></li>
       <% end %>
-      <%= image_tag @map_url %>
       </ul>
     </div>
     <% end %>