I have the following query method in my ActiveRecord model:
def self.tagged_with( string ) array = string.split(\',\').map{ |s| s.lstrip } select(\'disti
You could change your select statement to the following:
select('distinct photos.*').joins(:tags).where('tags.name = ?', array.join(' OR '))
Which will properly create the OR string in the where clause.
ian.