title: Rails: confused about syntax for passing locals to partials
body: <p>Understanding Rails "magic" with regards to rendering partials (and passing locals into them). </p>
  
  <p>Why does this work:</p>
  
  <pre><code>&lt;%= render "rabbits/form" %&gt;
  </code></pre>
  
  <p>And this work: </p>
  
  <pre><code>&lt;%= render "rabbits/form", :parent =&gt; @warren, :flash =&gt; flash %&gt;
  </code></pre>
  
  <p>but this does <strong>not</strong> work:</p>
  
  <pre><code>&lt;%= render "rabbits/form", :locals =&gt; { :parent =&gt; @warren, :flash =&gt; flash } %&gt;
  </code></pre>
  
  <p>But this does:</p>
  
  <pre><code>&lt;%= render :partial =&gt;"rabbits/form", :locals =&gt; { :parent =&gt; @warren, :flash =&gt; flash } %&gt;
  </code></pre>
  
  <p>Also, how can I look up these nuances so I don't need to bother people on S.O.?</p>