1 class BrowseController < ApplicationController
2 before_filter :authorize_web
6 way = Way.find(params[:id])
9 @name = @way.tags['name'].to_s
11 @name = "#" + @way.id.to_s
13 @title = 'Way | ' + (@name)
15 rescue ActiveRecord::RecordNotFound
16 render :nothing => true, :status => :not_found
21 node = Node.find(params[:id])
24 @name = @node.tags_as_hash['name'].to_s
26 @name = "#" + @node.id.to_s
28 @title = 'Node | ' + (@name)
30 rescue ActiveRecord::RecordNotFound
31 render :nothing => true, :status => :not_found