diff options
| author | mo khan <mo@mokhan.ca> | 2014-05-13 22:38:27 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-05-13 22:38:27 -0600 |
| commit | dd30a7c190183165022128b86623dbfdaaefba86 (patch) | |
| tree | 7cd4415156ded443816e23ffffb802242067360d /app | |
| parent | 2f0c90d4e3cc45c6a4ca987cd010085722c2c070 (diff) | |
remove map.
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/profiles_controller.rb | 4 | ||||
| -rw-r--r-- | app/views/profiles/show.html.erb | 1 |
2 files changed, 0 insertions, 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| %> <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 %> |
