#2 ✓resolved
Brian Pokosh

bug with new_child_path

Reported by Brian Pokosh | April 24th, 2009 @ 08:44 PM

I might be doing something wrong, but when I tried new_chiild_path the route I get back has the parent resource pluralized.

Here are my routes:

map.with_options(:path_prefix => "admin", :name_prefix => "admin_") do |admin|
  admin.resources :pages, :has_many => :children
end

When I use new_child_path(:children) I get the back the route new_admin_pages_children_path which is incorrect. Want I should get is new_admin_page_child_path.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

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

Adds context into the RESTful development style.

People watching this ticket

Pages