1 class BrowseController < ApplicationController
2 before_filter :authorize_web
10 @relation = Relation.find(params[:id])
12 @name = @relation.tags['name'].to_s
14 @name = "#" + @relation.id.to_s
17 @title = 'Relation | ' + (@name)
18 rescue ActiveRecord::RecordNotFound
19 render :nothing => true, :status => :not_found
25 @relation = Relation.find(params[:id])
27 @name = @relation.tags['name'].to_s
29 @name = "#" + @relation.id.to_s
32 @title = 'Relation History | ' + (@name)
33 rescue ActiveRecord::RecordNotFound
34 render :nothing => true, :status => :not_found
40 @way = Way.find(params[:id])
42 @name = @way.tags['name'].to_s
44 @name = "#" + @way.id.to_s
47 @title = 'Way | ' + (@name)
48 rescue ActiveRecord::RecordNotFound
49 render :nothing => true, :status => :not_found
55 @way = Way.find(params[:id])
57 @name = @way.tags['name'].to_s
59 @name = "#" + @way.id.to_s
62 @title = 'Way History | ' + (@name)
63 rescue ActiveRecord::RecordNotFound
64 render :nothing => true, :status => :not_found
70 @node = Node.find(params[:id])
72 @name = @node.tags_as_hash['name'].to_s
74 @name = "#" + @node.id.to_s
77 @title = 'Node | ' + (@name)
78 rescue ActiveRecord::RecordNotFound
79 render :nothing => true, :status => :not_found
85 @node = Node.find(params[:id])
87 @name = @node.tags_as_hash['name'].to_s
89 @name = "#" + @node.id.to_s
92 @title = 'Node History | ' + (@name)
93 rescue ActiveRecord::RecordNotFound
94 render :nothing => true, :status => :not_found