what should you write in routes.rb to give meaning to http://mebay.com/ads/3?

Question:what should you write in routes.rb to give meaning to http://mebay.com/ads/3?

1.from general to specific ('/ads/' and then '/ads/:id')

2.map.connect '/ads/:id', :controller=>'ads', :action=>'show'

3.include test.xml to root of "public" folder and ,render (:partial=>'map', :locals=>{:data=>'/test.xml'})

4.form_for(@object, :url=>{:action=>'create'})


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!