Sergio Ruiz wrote:

> ,----[ worker ]
> | class Worker < ActiveRecord::Base
> |   has_and_belongs_to_many  :skillsets
> |   belongs_to :instructor
> | end
> ...
> | <%= collection_select(:worker, :skillsets, Skillset.find(:all), :id, 
> :title, {}, {:multiple => true}) %>
> ...
> + when the select box is rendered, it it shows all the skillsets
>   correctly, but, the correct ones, the ones that are part of the
>   Worker model are not selected. nothing is selected.

Try

collection_select(:worker, :skillset_ids, ...

-- 
Rails Wheels - Find Plugins, List & Sell Plugins - http://railswheels.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
-~----------~----~----~----~------~----~------~--~---

Reply via email to