From: John Firebaugh Date: Tue, 12 Nov 2013 23:39:25 +0000 (-0800) Subject: Render correct template X-Git-Tag: live~4682^2~101 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/641ce5b640cfc74ca6c427fae49a39c08fa641ac Render correct template --- 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