If you want the /person url to map to your dog controller and show method, what do you add to your routes?

Question:If you want the /person url to map to your dog controller and show method, what do you add to your routes?

1.match '/person', :to => 'dog#show'

2.map.resources :person

3.map.resources :dog

4.map.resources :person => :dog


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!