Displaying 1 result from an estimated 1 matches for "category_article_com".
2010 Mar 27
2
Shorter Rails 3 routes
...ories do
    resources :articles do
      resources :comments
    end
end
A rake routes command produce the following lines:
                              GET
/categories/:category_id/articles/:article_id/comments(.:format)
{:controller=>"comments", :action=>"index"}
    category_article_comments POST
/categories/:category_id/articles/:article_id/comments(.:format)
{:controller=>"comments", :action=>"create"}
 new_category_article_comment GET
/categories/:category_id/articles/:article_id/comments/new(.:format)
{:controller=>"comments", :action=>...