title: Render a partial via page.replace_html and using a layout?
body: <p>here is what I'm trying to do:</p>
  
  <pre><code>    page.replace_html('manage_categories_list', :partial =&gt; "/categories/categories", :layout =&gt; :modal)
  </code></pre>
  
  <p>But, I get this error on the above code:</p>
  
  <pre><code>NoMethodError (undefined method `include?' for :modal:Symbol):
  </code></pre>
  
  <p>What I want to be able to do, is have template HTML for a modal dialog window. And set the header (h2) and the body (div) of that modal with any partial. =\</p>
  
  <p>modal.html.erb:</p>
  
  <pre><code>&lt;div class="fixed_modal"&gt;
      &lt;div class="modal_header"&gt;
          &lt;%= yield :header %&gt;
      &lt;/div&gt;
      &lt;div class="modal_body"&gt;
          &lt;%= yield %&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The partial I'm trying to render:</p>
  
  <pre><code>&lt;% content_for :header do %&gt;
      Manage Categories
  &lt;% end %&gt;
  </code></pre>
  
  <p>.... rest doesn't matter as it just goes into the yield</p>
  
  <p>I'm using rail 2.3.14</p>