Why can’t I do this?
<%= select(“work_user”, “properties”, Property.find_all.collect{|pr| [pr.name, pr.id]}, {}, {:size => 10, :multiple => true}) %>
And then when posting to my controller:
@work_user.attributes = @params‘work_user’
It complains that it’s trying to set Properties to Strings on my user’s properties attribute.
It should know to automatically map the id’s it gets into Property objects and add them to the user.