Skip to content

Instantly share code, notes, and snippets.

@danielvlopes
Created December 23, 2008 13:05
Show Gist options
  • Save danielvlopes/39326 to your computer and use it in GitHub Desktop.
Save danielvlopes/39326 to your computer and use it in GitHub Desktop.
ActionController::Routing::Routes.draw do |map|
map.resources :accounts do |accounts|
accounts.resources :people
end
map.resources :notes, :path_prefix=>"people/:person_id", :name_prefix => "people_"
map.resources :comments, :path_prefix=>"notes/:note_id", :name_prefix => "note_"
#map.connect ':controller/:action/:id'
#map.connect ':controller/:action/:id.:format'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment