title: Can 'locals' be used with 'collection' when rendering partials in Rails?
body: <p>Everything works okay when I try to render a partial like this:</p>
  
  <pre><code>= render :partial =&gt; "/shared/enquiry/car_type", :collection =&gt; @enquiry.available_car_types
  </code></pre>
  
  <p>However, if I also want to pass a variable (in this case 'path', because I'm sharing this partial across two forms), the path is not available to me:</p>
  
  <pre><code>= render :partial =&gt; "/shared/enquiry/car_type", :collection =&gt; @enquiry.available_car_types, :locals =&gt; {:path =&gt; customers_enquiry_path}
  </code></pre>
  
  <p>I've tried moving things around, but nothing appears to work, leading me to believe one cannot use locals with collections. Any help would be appreciated.</p>
  
  <p>Gav</p>