title: Finding all users with specific attribute in a through relation
body: <p>See the details below to make sense.</p>
  
  <p>I am trying to write a line of code that will be searching the database and show the users that have a specific skill.</p>
  
  <p>My clue is that I should be using something like <code>@user.where('skill = ?', skillvariable)</code>  or a specific query. Any point/guidance to the right direction is greatly appreciated.</p>
  
  <p><strong>Details</strong>:</p>
  
  <p>I have a users model, a skills model and a user_skills model. </p>
  
  <p>In user.rb I have the relation <code>has_many :skills, through: :user_skills</code>.</p>
  
  <p>In the skill.rb I have the relations <code>has_many :user_skills</code> and <code>has_many :users, through: :user_skills</code>,</p>
  
  <p>and then in user_skills.rb I have the <code>belongs_to :user</code> and <code>belongs_to :skill</code>.</p>
  
  <p>The user_skills schema is:</p>
  
  <pre><code>  t.integer "user_id"
    t.integer "skill_id"
  </code></pre>
  
  <p>And the skills schema is:</p>
  
  <pre><code>  t.string   "name"
    t.string   "slug"
  </code></pre>