ActionController::Routing::Routes.draw do |map|
# The priority is based upon order of creation: first created -> highest priority.
- map.resources :songs, :collection => { :search => [:get], :list => [:get] }
+ map.resources :songs,
+ :collection => { :search => [:get], :list => [:get] },
+ :member => { :print => [:get] }
# Sample of regular route:
# map.connect 'products/:id', :controller => 'catalog', :action => 'view'