I am trying to create an \'OR\' sql statement in ActiveRecord 3, I tried all kinds of variations but can\'t figure it out...
For example I want this query to include
Use the Arel methods to do this:
t = Post.arel_table ids = [1,2,3] Post.where( t[:user].eq("mike").or(t[:channel_id].in(ids)) )