```ruby
Demo::Application.routes.draw do |map|
  map.resources :contents
  map.search 'search', :controller => 'searches', :action => 'search'


  # Install the default route as the lowest priority.
  map.connect ':controller/:action/:id'
end
```

Use new Routing DSL for rails 3.
user
```ruby
Demo::Application.routes.draw do
  resources :contents
  match 'search', :to => 'searches#search'


  # Install the default route as the lowest priority.
  match ':controller(/:action(/:id))'
end
```
assistant