Is there a way to create a condition like this?
@products = Product.find(:all, :limit => 5, :conditions => { :products => { :locale => \'en\'
It should be something like this. The original query wasn't really clear, adapt it to your needs.
@products = Product.find(:all, :limit => 5, :conditions => ["locale = ? AND id <> ? AND tags.name IN (?)", "en", 1, ['a','b'], :joins => "tags" )