Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #7422 (new defect)

Opened 1 year ago

Last modified 1 year ago

[PATCH] Regression: Resource with uncountable name fails on index route

Reported by: danielmorrison Assigned to: core
Priority: normal Milestone: 1.2.7
Component: ActionPack Version: edge
Severity: normal Keywords: regression resource routing inflector
Cc:

Description

Using an uncountable name for a resource (ex: sheep) gives a routing error when trying to call sheep_path() It tries to generate the member's show route instead of the collection's index.

Attached file is a test case that shows the issue.

This is a regression from 1.2

Attachments

resouce_routing_test_with_uncountable.diff (0.9 kB) - added by danielmorrison on 01/29/07 06:48:19.

Change History

01/29/07 06:48:19 changed by danielmorrison

  • attachment resouce_routing_test_with_uncountable.diff added.

02/01/07 10:44:53 changed by jkit

I've submitted a patch to fix this, #7454.

05/05/07 22:32:56 changed by watson

  • summary changed from Regression: Resource with uncountable name fails on index route to [PATCH] Regression: Resource with uncountable name fails on index route.