From 763848b3dc88e90097f699c231281e17e3185315 Mon Sep 17 00:00:00 2001 From: Nick Black Date: Tue, 1 May 2007 23:32:02 +0000 Subject: [PATCH 1/1] routes to enable the postcode search --- config/routes.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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' -- 2.43.2