Getting the parent resource from the URL
I've got two objects (@stacks and @stories) with has_many relationships (through @anthologies). Stories can be viewed individually (/stories/1/) or as a collection in a Stack (/stacks/1/stories/1/). map.resources :stories map.resources :anthologies map.resources :stacks, :has_many => :stories do |stack| stack.resources :stories end ...