1 2
map.resources :pastes # assumed to be present already map.resources :pastes, :path_prefix => '/projects/:project_id'