I'm trying to use "select('DISTINCT *')" but it doesn't work. Sure, de INNER JOIN between Post and Tagging result of table that all rows are distinct. If we supost the next:
Posts Table ID TITLE 1 "Foo" 2 "FooFaa" TAGGINGS Table ID POST_ID TAG_ID 1 1 1 1 1 2 1 2 1 1 2 2 Using "select("DISTINCT posts.id, posts.title")" method I think I could get it but it isn't clean. Really, my Posts table have a lot of attributtes. Some advice? Thanks. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.