title: iframe src in Haml
body: <p>I always get an empty page when using an iframe. I put, in <em>src</em>, the location of the Haml file containing the code to create the checkboxes:</p>
  
  <p>view.haml:</p>
  
  <pre><code>%iframe{:src =&gt; "file:///home/marina/project/app/views/blog_posts/new2.haml"}
  </code></pre>
  
  <p>new2.haml:</p>
  
  <pre><code>%h1 popup
  br
  %input{:name =&gt; "option1", :type =&gt; "checkbox", :value =&gt; "Milk"}
  Milk
  %br
  %input{:name =&gt; "option2", :type =&gt; "checkbox", :value =&gt; "Butter"}
  Butter
  %br
  %input{:name =&gt; "option3", :type =&gt; "checkbox", :value =&gt; "Cheese"}
  Cheese
  %br
  </code></pre>