X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/8fb3d7365fb91d1822ae5f37361af077d48a9c8c..641ce5b640cfc74ca6c427fae49a39c08fa641ac:/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