]> git.openstreetmap.org Git - rails.git/blobdiff - config/routes.rb
routes to enable the postcode search
[rails.git] / config / routes.rb
index b00b3b649d17a4b15131673f817b25ad0f6f583a..c739fac8e653e1561fe5221f9d7e6c9a51ca19ca 100644 (file)
@@ -75,8 +75,9 @@ ActionController::Routing::Routes.draw do |map|
   map.connect '/test/populate/:table/:count', :controller => 'test', :action => 'populate', :from => 1
 
   # geocoder
-  map.connect 'geocoder/search/', :controller => 'geocoder', :action => 'search'
-  map.connect 'geocoder/results/', :controller => 'geocoder', :action => 'results'
+  map.connect '/geocoder/search/', :controller => 'geocoder', :action => 'search'
+  map.connect '/geocoder/results/', :controller => 'geocoder', :action => 'results'
+  map.connect '/postcode/:postcode/', :controller => 'geocoder', :action => 'search'
   
   # fall through
      map.connect ':controller/:id/:action'