:selected option is ignored for collection_select

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.