change host with host_with_port

This commit is contained in:
Rueshyna 2012-11-09 16:31:36 +08:00
parent 275c6f4c8a
commit 295aef32ab
1 changed files with 2 additions and 2 deletions

View File

@ -59,8 +59,8 @@ class Panel::Gprs::BackEnd::LocationsController < OrbitBackendController
@data = Array.new
locations.each do |location|
picurl = "http://"+request.host + location.file.url
thumburl = "http://"+request.host + location.file.thumb.url
picurl = "http://#{request.host_with_port + location.file.url}",
thumburl = "http://#{request.host_with_port + location.file.thumb.url}"
@data << { name: location.name,
pic_url: picurl,
thumb_url: thumburl,