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

Ticket #7893 (closed enhancement: wontfix)

Opened 2 years ago

Last modified 1 year ago

[PATCH] Adding the ability to remove collection and member route generation for Resources

Reported by: halorgium Assigned to: core
Priority: normal Milestone: 1.x
Component: ActionPack Version: edge
Severity: normal Keywords: actioncontroller resources
Cc:

Description

I have found it necessary sometimes to not have member routes for a nested Resource. With the current implementation, there are sticky situations which produce duplicate named routes.

I have added an extra option for the map.resources call to allow the exclusion of collection and member route generation.

References:

Attachments

resource_route_exclusions.diff (11.9 kB) - added by halorgium on 03/23/07 00:11:19.

Change History

03/23/07 00:11:19 changed by halorgium

  • attachment resource_route_exclusions.diff added.

05/27/07 18:33:22 changed by josh

  • summary changed from Adding the ability to remove collection and member route generation for Resources to [PATCH] Adding the ability to remove collection and member route generation for Resources.
  • milestone changed from 1.2.4 to 1.x.

06/25/07 19:13:22 changed by josh

  • status changed from new to closed.
  • resolution set to wontfix.

Check "map.resource". Yes with out the "s". It works great if your dealing with has_one associations or associations that are scoped to the current logged in user.