search for: find_posts_with_tag_ids

Displaying 1 result from an estimated 1 matches for "find_posts_with_tag_ids".

2006 Nov 22
1
has_and_belongs_to_many find with multiple predicates?
Hi, I have a habtm relationship between ''Posts'' and ''Tags'' and am trying to get a list of Posts that have multiple tags. Something like: @posts = Posts.find_posts_with_tag_ids[1, 3, 5] Is this catered for in ActiveRecord or should I write my own SQL statement? Thanks, GiantCranes -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rai...