On Mon, Sep 7, 2015 at 2:40 PM, Colin Law <[email protected]> wrote: > On 6 September 2015 at 15:00, tamouse pontiki <[email protected]> > wrote: > > > > On Fri, Sep 4, 2015 at 1:21 AM, Colin Law <[email protected]> wrote: > >> > >> On 3 September 2015 at 21:56, Priya Mohan <[email protected]> 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 :) > > I have the guides, the api docs, and Ruby's Enumerable pinned in my browser for re-reading. :)
-- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAHUC_t_LTN0DvEgvgNey9F3cLkJoWPQB5_D7xzh7iDZ%2B1M%3DM%2BQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

