Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Resources Routing not correctly generating paths

#2094

A regression was introduced in commit fef6c32afe2276dffa0347e25808a86e7a101af1.

The following works in Rails v2.2.2, but not in master or v2.3.0.

With a router configured without these lines:

map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id'
and with a resource setup as below:
map.resources :projects
The /projects/ path is no longer accessible. However /projects is.

Reported by matthewcford · February 27th, 2009 @ 02:13 PM

State: duplicate
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Wincent Colaiuta
    Wincent Colaiuta

    Looks like a dupe of my bug report; see ticket #2043.

    I also suspect that ticket #2081 and ticket #2082 are related.

    February 27th, 2009 @ 04:31 PM

  2. matthewcford
    matthewcford

    It is similar, be as far as I can tell /resource/id should default to HTML, at the moment this route is not generated at all.

    March 2nd, 2009 @ 03:34 PM

  3. matthewcford
    matthewcford

    Correction: adding a trailing slash on routes, break them

    March 2nd, 2009 @ 03:37 PM

  4. Oliver Legg
  5. matthewcford
  6. matthewcford
  7. josh
    josh
    • State changed from new to duplicate

    March 4th, 2009 @ 07:27 PM