ActionController::Routing::Routes.draw do |map|
  .
  .
  .

  # Trasy nazwane
  map.hub 'user', :controller => 'user', :action => 'index'  
  map.profile 'profile/:screen_name', :controller => 'profile', :action => 'show'
  
  # Zasoby REST
  map.resources :spec
  
  # Instalacja domylnej trasy z najniszym priorytetem
  map.connect ':controller/:action/:id'
end

