title: Building Active Record Conditions in an array - private method 'scan' called error
body: <p>I'm attempting to build a set of conditions dynamically using an array as suggested in the first answer here: <a href="https://stackoverflow.com/questions/1658990/one-or-more-params-in-model-find-conditions-with-ruby-on-rails">One or more params in model find conditions with Ruby on Rails</a>. However I seem to be doing something incorrectly and I'm not sure if what I'm trying is fundamentally unsound or if I'm simply botching my syntax.</p>
  
  <p>I'm simplifying down to a single condition here to try to illustrate the issue as I've tried to built a simple Proof of concept along these lines before layering on the 5 different condition styles I'm contending with.</p>
  
  <p>This works:</p>
  
  <pre><code>excluded.push 12
  excluded.push 30
  @allsites = Site.all(:conditions =&gt; ["id not in (?)", excluded])
  </code></pre>
  
  <p>This results in a private method 'scan' called error:</p>
  
  <pre><code>conditionsSet = []
  excluded.push 12
  excluded.push 30
  conditionsSet &lt;&lt; ["id not in (?)", excluded]
  @allsites = Site.all(:conditions =&gt; conditionsSet)
  </code></pre>
  
  <p>Thanks for any advice. I wasn't sure if the proper thing was to put this as a followup item to the related question/answers I noted at the top. Since I've got a problem not an answer. If there is a better way to post this related to the existing post please let me know.</p>