For this situation, you should have User, Language, and UserLanguage models. User :has_many user_languages and :has_many languages :through user_languages.
Take a look at Ryan Bates' webcast http://railscasts.com/episodes/17-habtm-checkboxes-revised. It is a bit old but still applies to your question. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/46df6861-cbb1-4a84-a5b6-12cee0e82bd0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.