This project is archived and is in readonly mode.
Uncountable resources and route building
Reported by Brendon | March 24th, 2009 @ 03:49 AM | in 2.x
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.
Comments and changes to this ticket
-
CancelProfileIsBroken March 24th, 2009 @ 01:40 PM
- State changed from new to duplicate
Yes, let's track this on #411 - it does need fixing.
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>