This project is archived and is in readonly mode.

#3734 ✓wontfix
Sam Saffron

form_for is resolving a plural instance for a singlar resource

Reported by Sam Saffron | January 18th, 2010 @ 04:17 AM | in 3.0.2

I have this route

map.namespace :admin do |m|
  m.resource :global
end

usage:

form_for [:admin, Global.instance] do |f|
  ...

In rails 2.3.5 this works fine, in rails 3 it is resolving the array incorrectly to admin_globals_path which causes a failure.

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

Pages