From: Nick Black Date: Tue, 1 May 2007 23:32:02 +0000 (+0000) Subject: routes to enable the postcode search X-Git-Tag: live~8494 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/763848b3dc88e90097f699c231281e17e3185315 routes to enable the postcode search --- diff --git a/config/routes.rb b/config/routes.rb index b00b3b649..c739fac8e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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'