Overwriting catch all routes

Hi all,

I have set up the following catch all route:

map.connect ‘/homepage/*path_info’, :controller => “index”, :action
=> “show_node”

Now I can access url like /homepage, /homepage/company/history and so
on.

I want to add a search action at /homepage/search. Adding

map.connect ‘/homepage/search’, :controller => “index”, :action =>
“search”

before (or after) the catch all URL causes all other /homepage/*
requests to return a routing error like: “Recognition failed for “/
homepage/company”” even if those worked correctly before the addition.

Any idea what is going on?

Many thanks in advance,
Nickolay