This project is archived and is in readonly mode.

#3561 ✓resolved
Sam Ruby

Names for nested resources changed (AWDwR3, section 21)

Reported by Sam Ruby | December 11th, 2009 @ 12:33 PM | in 3.0.2

Given the following "new DSL" style route definition:

  resources :articles do
    resources :comments
  end

The following named route is generated:

article_edit_comment GET    /articles/:article_id/comments/:id/edit(.:format) {:controller=>"comments", :action=>"edit"}

The correct name for this route is edit_article_comment

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Referenced by

Pages