Skip to content

Instantly share code, notes, and snippets.

@mdeiters
Forked from anonymous/gist:12101
Created September 22, 2008 19:20
Show Gist options
  • Save mdeiters/12106 to your computer and use it in GitHub Desktop.
Save mdeiters/12106 to your computer and use it in GitHub Desktop.
map.resources :divisions do |division|
division.resources :wss_configs
division.resources :websites
division.resources :urls
division.resources :announcements
division.resources :attachments
division.resources :scenes
end
map.resources :articles, :has_many => [:comments], do |article|
article.resources :comments
end
map.resources :comments
Post /article/1/comments
Read /comment/1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment