X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9dd230d0bc7de0cdf705f3cd4b3be07ae23c154b..2bb59daa37f8ff0807e235bb11e918dfe220284e:/app/controllers/browse_controller.rb diff --git a/app/controllers/browse_controller.rb b/app/controllers/browse_controller.rb index 377c7ced1..c8375ee06 100644 --- a/app/controllers/browse_controller.rb +++ b/app/controllers/browse_controller.rb @@ -33,7 +33,7 @@ class BrowseController < ApplicationController def way_history @type = "way" @feature = Way.preload(:way_tags, :old_ways => { :changeset => :user }).find(params[:id]) - render 'feature' + render 'history' rescue ActiveRecord::RecordNotFound render :action => "not_found", :status => :not_found end