X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/925d12cc8176414d0f9531832862a5825783d132..2d39ba79542c9ce1026d8f9c90fa9afd766e1e2c:/app/controllers/traces_controller.rb diff --git a/app/controllers/traces_controller.rb b/app/controllers/traces_controller.rb index 4f263e9b2..90ab34a48 100644 --- a/app/controllers/traces_controller.rb +++ b/app/controllers/traces_controller.rb @@ -1,4 +1,6 @@ class TracesController < ApplicationController + include UserMethods + layout "site", :except => :georss before_action :authorize_web @@ -59,9 +61,9 @@ class TracesController < ApplicationController @params = params.permit(:display_name, :tag, :before, :after) @traces = if params[:before] - traces.where("id < ?", params[:before]).order(:id => :desc) + traces.where("gpx_files.id < ?", params[:before]).order(:id => :desc) elsif params[:after] - traces.where("id > ?", params[:after]).order(:id => :asc) + traces.where("gpx_files.id > ?", params[:after]).order(:id => :asc) else traces.order(:id => :desc) end