Render correct template

This commit is contained in:
John Firebaugh 2013-11-12 15:39:25 -08:00
parent 8fb3d7365f
commit 641ce5b640

View file

@ -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