title: How can I make an 'OR' statement in ActiveRecord?
body: <p>I am trying to create an 'OR' sql statement in ActiveRecord 3, I tried all kinds of variations but can't figure it out...</p>
  
  <p>For example I want this query to include multiple 'channel_ids' and have it return all posts for any of the channel IDs. This works for one:</p>
  
  <pre><code>Post.where(:user =&gt; 'mike').where(:channel_id =&gt; 0).limit(20)
  </code></pre>
  
  <p>but I cant figure out how to do it with multiples, I've tried for example:</p>
  
  <pre><code>Post.where(:user =&gt; 'mike').where(:channel_id =&gt; ?, [0,1,2,3]).limit(20) 
  </code></pre>
  
  <p>but it didn't work. How can I make this work?</p>