title: Has_many :through association
body: <p>I made a relationship with the three models using <code>has_many :through</code>:</p>
  
  <pre><code>class Curriculum class &lt; ActiveRecord::Base
  
      has_many :interests
      has_many :vacancies,: through =&gt; :interests
  end
  
  class Vacancy class &lt; ActiveRecord::Base
  
     has_many :interests
     has_many :resumes,: through =&gt; :interests
  end
  
  class Interest &lt; ActiveRecord:: Base
  
      belongs_to :vacancy
      belongs_to :curriculum
  end
  </code></pre>
  
  <p>And to create curriculum and vacancy, I create them by administrative, i need to know how can i create the interest to the id of the vacancy, and how it will be logged on the system I have to get the id of it and make the relationship in creating a new bank interest. I wonder how I can program it to do so, and I wonder how the controller will get the create action, and what better way to do this.</p>