From dd30a7c190183165022128b86623dbfdaaefba86 Mon Sep 17 00:00:00 2001 From: mo khan Date: Tue, 13 May 2014 22:38:27 -0600 Subject: remove map. --- app/controllers/profiles_controller.rb | 4 ---- app/views/profiles/show.html.erb | 1 - 2 files changed, 5 deletions(-) diff --git a/app/controllers/profiles_controller.rb b/app/controllers/profiles_controller.rb index 376ba28d..0c160063 100644 --- a/app/controllers/profiles_controller.rb +++ b/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 diff --git a/app/views/profiles/show.html.erb b/app/views/profiles/show.html.erb index 78b45cd2..c343c2c8 100644 --- a/app/views/profiles/show.html.erb +++ b/app/views/profiles/show.html.erb @@ -26,7 +26,6 @@ <% @nearby_users.each do |item| %>
  • <%= link_to item.name, profile_path(item), :class => "mix-link", "data-event" => "click-on-nearby-user" %> <%= item.city %>
  • <% end %> - <%= image_tag @map_url %> <% end %> -- cgit v1.2.3