[Rails] Re: Routing error in nested resources

2009-03-31 Thread Danimal
Hi Carlos! Because of the nesting. For example, I recently hacked up a version of Beast which is nested similarly to yours: Forums with many Topics with many Posts. Creating a new post has the following resource path: / forums/:forum_id/topics/:topic_id/posts/new Even though the topic_id in my ca

[Rails] Re: Routing error in nested resources

2009-03-30 Thread Carlos Santana
Carlos Santana wrote: > I am using nested resources as follows: > map.resources :topics do |topics| > topics.resources :items do |items| > items.resources :attachments > end > end > > When I generate a RESTful path for new item in the console: > app.new_topic_item_path(2) then I