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.

Uncountable resources and route building

#2323

As per the bottom of this ticket:

http://rails.lighthouseapp.com/p...

Generating a path for an uncountable resource seems to be broken when dealing with the singular routes (ones appended with _index automatically by Rails when the resource is uncountable) - specifically routes pointing to the 'update' and 'create' methods.


Loading development environment (Rails 2.3.2)
>> app.podcast_series_index_path(PodcastSeries.new)
=> "/podcast_series.%23%3Cpodcastseries:0x6c8a824%3E"

The routes config is simply:

map.resources :podcast_series

Seems to me to be quite a serious bug. It's certainly blocked my refactoring efforts.

I'd appreciate some help in identifying where the '.%23%3Cpodcastseries:0x6c8a824%3E' is getting added in the rails code.

Reported by Brendon · March 24th, 2009 @ 03:49 AM

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

Activity

  1. CancelProfileIsBroken
    CancelProfileIsBroken
    • State changed from new to duplicate

    Yes, let's track this on #411 polymorphic_path breaks on uncountable resources - it does need fixing.

    March 24th, 2009 @ 01:40 PM