On Jul 27, 5:41 am, Hans Hartmann <[email protected]>
wrote:
> Hi there,
>
> I'm storing serveral values in my database through collection_select.
> Saving the value works fine but getting the saved value by using the
> update-form and setting it as "default-selected" doesn't work.
>
> I tried :selected and :include_black till now... but nothing works.
>
A classic is the selected values being _if fields (ie integers) but
the choices being strings (and of course no 1 != "1")
Fred
> Can anyone help me?
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---