views:

48

answers:

1

I am trying to figure out how to submit a search query get variables as /search/query instead of /search?search=query. Any ideas?

A: 

Define route in your routes.rb

map.search "/search/:search", :controller => "search", :action => "index", :conditions => { :method => :get }

restart server and check.

for more info ref Module ActionController::Routing

Salil