before_filter :authorize_web
layout 'site'
- def relation_view
+ def relation
begin
@relation = Relation.find(params[:id])
end
end
- def way_view
+ def way
begin
@way = Way.find(params[:id])
end
end
- def node_view
+ def node
begin
@node = Node.find(params[:id])
@name = "#" + @node.id.to_s
end
- @title = 'Node | ' + (@name)
+ @title = 'Node History | ' + (@name)
rescue ActiveRecord::RecordNotFound
render :nothing => true, :status => :not_found
end
<tr>
- <td><%= link_to member.member_id.to_s, :action => member.member_type+'_view', :id => member.member_id %></td>
+ <td><%= link_to member.member_id.to_s, :action => member.member_type, :id => member.member_id %></td>
<td><%= h(member.member_type) %></td>
<td><%= h(member.member_role) %></td>
</tr>
map.connect "api/#{API_VERSION}/swf/trackpoints", :controller =>'swf', :action =>'trackpoints'
# Data browsing
- map.connect '/browse/way/:id', :controller => 'browse', :action => 'way_view', :id => /\d+/
+ map.connect '/browse/way/:id', :controller => 'browse', :action => 'way', :id => /\d+/
map.connect '/browse/way/:id/history', :controller => 'browse', :action => 'way_history', :id => /\d+/
- map.connect '/browse/node/:id', :controller => 'browse', :action => 'node_view', :id => /\d+/
+ map.connect '/browse/node/:id', :controller => 'browse', :action => 'node', :id => /\d+/
map.connect '/browse/node/:id/history', :controller => 'browse', :action => 'node_history', :id => /\d+/
- map.connect '/browse/relation/:id', :controller => 'browse', :action => 'relation_view', :id => /\d+/
+ map.connect '/browse/relation/:id', :controller => 'browse', :action => 'relation', :id => /\d+/
map.connect '/browse/relation/:id/history', :controller => 'browse', :action => 'relation_history', :id => /\d+/
# web site