On 6 September 2015 at 15:00, tamouse pontiki <tamouse.li...@gmail.com> wrote: > > On Fri, Sep 4, 2015 at 1:21 AM, Colin Law <clan...@gmail.com> wrote: >> >> On 3 September 2015 at 21:56, Priya Mohan <mmpriy...@gmail.com> wrote: >> > 6.config/routes.rb >> > >> > controller 'ads' do >> > match 'ads/:id' => :show >> > match 'ads/:id' => :index >> > end > > >> >> As for your specific problem it should be /ads/show/3. Also the route >> for index should not include the id. But in routes.rb you should be >> using resources rather than match for such cases. > > > The "show" route would just be /ads/3 : http://localhost:3000/ads/3
That's true, perhaps I need to work through the tutorial again myself :) Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvgj9QtCWcN59LccV8BC_7jQJeSuMBup_2pDmNFLvy_5g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.