]> git.openstreetmap.org Git - rails.git/blobdiff - config/routes.rb
don't abuse link_to: do it right
[rails.git] / config / routes.rb
index 77a8dd8c2064fc5ca70c55ef882fdc598c82e1c9..83b39e615f5efb453372c64b9187bf15f91c5ee0 100644 (file)
@@ -56,7 +56,11 @@ ActionController::Routing::Routes.draw do |map|
   
   # Data browsing
   map.connect '/way/:id', :controller => 'browse', :action => 'way_view', :id => /\d+/
+  map.connect '/way/:id/history', :controller => 'browse', :action => 'way_history', :id => /\d+/
   map.connect '/node/:id', :controller => 'browse', :action => 'node_view', :id => /\d+/
+  map.connect '/node/:id/history', :controller => 'browse', :action => 'node_history', :id => /\d+/
+  map.connect '/relation/:id', :controller => 'browse', :action => 'relation_view', :id => /\d+/
+  map.connect '/relation/:id/history', :controller => 'browse', :action => 'relation_history', :id => /\d+/
   
   # web site