Topic: assigning teams using a form with checkboxes...

*** I moved this here from the programming thread - prob more appropriate here ***

I am trying to create a simple form where I can assign users who have registered to teams.

Basically I have a database where all the registrations for the season are stored and linked to user accounts via a user_id foreign key.

Conceptually I want to create a page that lists all the users registered for a particular league with check boxes next to each user. There would be a select list to choose the team color at the top of the page and a submit button at the bottom.

Passing over the value of the select box will be simple, but I am not sure how to handle the check boxes or the format they should come over to the method in... I have had trouble working with check boxes before and I am not sure how to handle this.

Any ideas or suggestions for a better way would be appreciated!

Re: assigning teams using a form with checkboxes...

I ended up implementing the method above - the code is over here:
http://railsforum.com/viewtopic.php?id=4847