Raveendran J. wrote:
<%= select_tag @tag12, options_for_select( @tag )
Thanks a lot for ur quick and beautiful code help.
Now try this one.
The @yo object has a list of ids from the a model called Mod.
We need this to make the ids sticky in the form:
form_for :yo do |f|
f.collection_select(:ids, Mod.find(:all), :id, :name)
The problem is, even after we make all that pseudo-Rails into real Rails
with all the right arguments, the ids are not sticky.
(Sticky means if you serve the page twice with the same @yo object, the
items should still be selected.)
Any ideas? We had to go back to select_tag, and generally do for
everything f.collection_select was supposed to do.