Skip to content

Instantly share code, notes, and snippets.

@jxpx777
Created December 27, 2011 19:44
Show Gist options
  • Select an option

  • Save jxpx777/1524933 to your computer and use it in GitHub Desktop.

Select an option

Save jxpx777/1524933 to your computer and use it in GitHub Desktop.
Why is this returning multiple copies of each article?
class ArticlesController < ApplicationController
def index
@articles = Article.joins(:product_platform_references => {:product_platform => [:product, :platform]}, :article_categories => :category)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment