Forum: Ruby on Rails :selected option is ignored for collection_select

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Taylor S. (Guest)
on 2009-01-23 22:18
Is there a workaround for this issue yet?  I just wasted a ton of time
trying to debug this in an AJAX form.

Reported by YoNoSoyTu | September 12th, 2008 @ 11:07 PM | in 2.3

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.
This topic is locked and can not be replied to.