I have two models: Products and Tags through a products_tags join in a HABTM relationship.
I am currently defining my controller index as:
@stats = Product.all(:include => :tags).uniq
which returns an array. How can I return an Active Rel object? I tried added scoped, however received a no method error.
I need to find and list a unique list of tags, and be able to view what product each specif tag belongs to.