I have some troubles adding objects in a relationship directly in the code. I''ve cheated and set them up manually direct in the database so far. I have controllers Players and Groups, in a HABTM relationship. I want to assign players to a group, but don''t know how to do it. I have a form with checkboxes of players, giving me an array of player IDs. So, how do I go about to assign them to a group? -- Johan Svensson http://atomicplayboy.net/
Johan Svensson <echo5ive-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:> I have a form with checkboxes of players, giving me an array of player > IDs. So, how do I go about to assign them to a group?http://wiki.rubyonrails.com/rails/show/CheckboxHABTM -- doug-jGAhs73c5XxeoWH0uzbU5w@public.gmane.org