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 @way = Way.find(params[:id])
39 @name = @way.tags['name'].to_s
41 @name = "#" + @way.id.to_s
44 @title = 'Way History | ' + (@name)
45 rescue ActiveRecord::RecordNotFound
46 render :nothing => true, :status => :not_found
52 @node = Node.find(params[:id])
54 @name = @node.tags_as_hash['name'].to_s
56 @name = "#" + @node.id.to_s
59 @title = 'Node | ' + (@name)
60 rescue ActiveRecord::RecordNotFound
61 render :nothing => true, :status => :not_found
66 @node = Node.find(params[:id])
68 @name = @node.tags_as_hash['name'].to_s
70 @name = "#" + @node.id.to_s
73 @title = 'Node | ' + (@name)
74 rescue ActiveRecord::RecordNotFound
75 render :nothing => true, :status => :not_found