title: Rails render partial with multiple objects
body: <p>This code is working fine:</p>
  
  <pre><code>&lt;%= render 'sidebars/pages', :object =&gt; @categories = pages , :object =&gt; { @myobject =&gt; '1', @mmyobject =&gt; '2' } %&gt;
  </code></pre>
  
  <p>If I change to this:</p>
  
  <pre><code>&lt;%= render 'sidebars/pages', :object =&gt; { @categories =&gt; pages, @myobject =&gt; '1', @mmyobject =&gt; '2' } %&gt;
  </code></pre>
  
  <p>Then I receive a error from the partial when it try to iterate @categories:</p>
  
  <pre><code>undefined method `each' for nil:NilClass
  </code></pre>
  
  <p>I'm very new to ruby and rails also, I appreciate any help.</p>
  
  <p>Cheers!</p>