# Has\_many :through checkboxes + select

**URL:** <https://www.ruby-forum.com/t/has-many-through-checkboxes-select/131746>\
**Category:** Rails\
**Created:** [March 12, 2008, 10:32pm UTC](https://www.ruby-forum.com/t/has-many-through-checkboxes-select/131746 "2008-03-12T22:32:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flaubert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/858c86/32.png) [@flaubert](https://www.ruby-forum.com/u/flaubert)\
**Post date:** [March 12, 2008, 10:32pm UTC](https://www.ruby-forum.com/t/has-many-through-checkboxes-select/131746/1 "2008-03-12T22:32:45Z")

</div>

Hello all.

I have 3 models:

Profile.rb

has\_many :knowledges  
has\_many :skills, :through =\> :knowledges

table (id,name)

Knowledge.rb

belongs\_to :profile  
belongs\_to :skill

table (profile\_id,skill\_id,level)

Skill.rb

has\_many :knowledges  
has\_many :profiles, :through =\> :knowledges

table(id,name)

Thats all ok if I want to populate, in the profile “\_form”, the  
checkboxes using “profile[skill\_ids][]”.

So, what about the LEVEL field? How can I fill that? Anyone can help  
with this??
