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 @relation = Relation.find(params[:id])
24 @name = @relation.tags['name'].to_s
26 @name = "#" + @relation.id.to_s
29 @title = 'Relation History | ' + (@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 | ' + (@name)
45 rescue ActiveRecord::RecordNotFound
46 render :nothing => true, :status => :not_found
52 @way = Way.find(params[:id])
54 @name = @way.tags['name'].to_s
56 @name = "#" + @way.id.to_s
59 @title = 'Way History | ' + (@name)
60 rescue ActiveRecord::RecordNotFound
61 render :nothing => true, :status => :not_found
67 @node = Node.find(params[:id])
69 @name = @node.tags_as_hash['name'].to_s
71 @name = "#" + @node.id.to_s
74 @title = 'Node | ' + (@name)
75 rescue ActiveRecord::RecordNotFound
76 render :nothing => true, :status => :not_found
82 @node = Node.find(params[:id])
84 @name = @node.tags_as_hash['name'].to_s
86 @name = "#" + @node.id.to_s
89 @title = 'Node | ' + (@name)
90 rescue ActiveRecord::RecordNotFound
91 render :nothing => true, :status => :not_found