map.routes.rb pls help

hi i am having a search option in my application.after the search url is going as /search?query=linux.

I want to achieve it as /search/linux using routes.rb

i am giving it as map.search 'search/*query_text',:controller => "home",:action => "search"

but it is coming as search?query=linux

That should be because you haven’t modified the name property of you text field.