[Rails] Rails nested Routing

2011-11-10 Thread Leo M.
Hi there! I experienced an issue with routing. Basically, I'm trying to follow step-by-step the Rails' official guides process for what concerns the nested routing. So, I have Newspapers that has_many :ads , and :ads belongs to :newspaper . What I did was simply trying to obtain an URL like

Re: [Rails] Rails nested Routing

2011-11-10 Thread Dave Aronson
On Thu, Nov 10, 2011 at 15:26, Leo M. li...@ruby-forum.com wrote: I have Newspapers that has_many :ads , and :ads belongs to :newspaper . ... http://localhost/newspapers/1/ads/1 ... resources :newspapers do   resources :ads end ... No route matches {:controller=ads, :action=show, :id=#Ad

Re: [Rails] Rails nested Routing

2011-11-10 Thread radhames brito
On Thu, Nov 10, 2011 at 4:26 PM, Leo M. li...@ruby-forum.com wrote: Hi there! I experienced an issue with routing. Basically, I'm trying to follow step-by-step the Rails' official guides process for what concerns the nested routing. So, I have Newspapers that has_many :ads , and :ads