title: Rails / ActiveRecord: how to get all articles whose tags are included in current article tags?
body: <p>This one is a head scratcher!</p>
  
  <p>I'm trying to get all articles whose categories are included in current article's categories.</p>
  
  <p>What I have so far, which is wrong of course:</p>
  
  <pre><code>@rq = Article.includes(:tags).where(tags: { name: @article.tags.first.name })
  </code></pre>
  
  <p>There is a join table setup between <code>Article</code> and <code>Tag</code> (has_and_belongs_to Tag and has_and_belongs_to Article). Essentially I can access all tags of current article with <code>@article.tags</code> and all articles of current tag with <code>@tag.articles</code>.</p>