Corrected API url for locations

This commit is contained in:
Saurabh Bhatia 2014-03-20 17:22:39 +08:00
parent aafcfabd26
commit 1c385e831a
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ class ApiController < ApplicationController
I18n.locale = :zh_tw
name_zh_tw = category.title
category_id = category.id.to_s
@data << { name_en: name_en, name_zh_tw: name_zh_tw, category_id: category_id, location_link: "http://#{request.host_with_port}"+"/#{get_locations_api_index_path}"+"?category_id=#{category_id}"}
@data << { name_en: name_en, name_zh_tw: name_zh_tw, category_id: category_id, location_link: "http://#{request.host_with_port}"+"#{get_locations_api_index_path}"+"?category_id=#{category_id}"}
end
render :json => JSON.pretty_generate(@data)