This project is archived and is in readonly mode.
:selected option is ignored for collection_select
Reported by YoNoSoyTu | September 12th, 2008 @ 11:07 PM
(Copied from #7043 in old bug tracker)
The :selected option in collection_select is ignored. This patch uses the value of :selected option if it is provided, otherwise normal Rails behaviour apply.
Test included.
Comments and changes to this ticket
-
billno September 30th, 2008 @ 03:41 AM
This patch is two years old!!! See #7043 in the old bug tracker
What does it take to get it committed? I just checked github and it does not seem to be in the sources.
This stuff up wasted a lot of my time. collection_select does NOT work as documented and this patch fixes it.
-
Matt Buck October 23rd, 2008 @ 09:02 PM
I second that. What needs to be done to get this into core? I'm volunteering.
-
YoNoSoyTu October 23rd, 2008 @ 09:28 PM
Read http://rails.lighthouseapp.com/p...
You only have to apply the patch to the Rails edge, test it and if it works give this ticket a comment with "plus 1" (with the symbol and without the space), and a short comment why this patch should be considered for inclusion.
By the way, I have updated the patch, removing whitespace, as source style document say.
-
Gabriel Medina October 31st, 2008 @ 11:05 AM
- Title changed from :selected option is ignored for collection_select to [PATCH] :selected option is ignored for collection_select
- Tag changed from actionpack, bug, edge, helper, patch, tested, tiny to actionpack, bug, collection, collection_select, edge, helper, ignored, patch, selected, tested, tiny
Single file patch.
Gabriel Medina.
-
Pratik January 19th, 2009 @ 08:15 PM
- Milestone cleared.
- Assigned user set to Pratik
- Title changed from [PATCH] :selected option is ignored for collection_select to :selected option is ignored for collection_select
-
Repository January 28th, 2009 @ 08:01 PM
- State changed from new to resolved
(from [9a8e2a059c823498e0fb318f25b926a6d015ef87]) Ensure selected option is not ignored for collection_select. [#1037 state:resolved]
Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...
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>
People watching this ticket
Attachments
Referenced by
- 1037 :selected option is ignored for collection_select (from [9a8e2a059c823498e0fb318f25b926a6d015ef87]) Ensure ...