Render correct template
This commit is contained in:
parent
8fb3d7365f
commit
641ce5b640
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ class BrowseController < ApplicationController
|
||||||
def way_history
|
def way_history
|
||||||
@type = "way"
|
@type = "way"
|
||||||
@feature = Way.preload(:way_tags, :old_ways => { :changeset => :user }).find(params[:id])
|
@feature = Way.preload(:way_tags, :old_ways => { :changeset => :user }).find(params[:id])
|
||||||
render 'feature'
|
render 'history'
|
||||||
rescue ActiveRecord::RecordNotFound
|
rescue ActiveRecord::RecordNotFound
|
||||||
render :action => "not_found", :status => :not_found
|
render :action => "not_found", :status => :not_found
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue