title: Rails, Paginate with an or statement in the conditions
body: <p>So basically I have two types of status' and I'd like to display both properties with status_id "2" and status_id "5", properties never have two status' so I know I don't want to use an &amp; here, I'd like to be able to have and or statement but I'm not sure how to go about doing that. This is what I have to show just status_id "2" and it works just fine.</p>
  
  <pre><code>@properties = Property.order("updated_at DESC").paginate(:per_page =&gt; 20, :page =&gt; params[:page], :conditions =&gt; { :status_id =&gt; '2' })
  </code></pre>
  
  <p>in my model I also have scopes that look like the following, not sure if I could do it that way...</p>
  
  <pre><code>scope :for_sale, joins(:status).where(:statuses =&gt; { :current =&gt; 'For Sale'})
  scope :market_listings, joins(:status).where(:statuses =&gt; { :current =&gt; 'Market Listing'})
  </code></pre>
  
  <p>any help would be appreciated.</p>