1 class BrowseController < ApplicationController
2 before_filter :authorize_web
7 @relation = Relation.find(params[:id])
9 @name = @relation.tags['name'].to_s
11 @name = "#" + @relation.id.to_s
14 @title = 'Relation | ' + (@name)
15 rescue ActiveRecord::RecordNotFound
16 render :nothing => true, :status => :not_found
22 @way = Way.find(params[:id])
24 @name = @way.tags['name'].to_s
26 @name = "#" + @way.id.to_s
29 @title = 'Way | ' + (@name)
30 rescue ActiveRecord::RecordNotFound
31 render :nothing => true, :status => :not_found
37 @node = Node.find(params[:id])
39 @name = @node.tags_as_hash['name'].to_s
41 @name = "#" + @node.id.to_s
44 @title = 'Node | ' + (@name)
45 rescue ActiveRecord::RecordNotFound
46 render :nothing => true, :status => :not_found