title: variables in slim rails
body: <p>I have template written with Slim, and I want to use it with Ruby but I have these errors in <code>index.slim</code>.</p>
  
  <pre><code>   -content_panel_file = '_partials/content_panel_5'
     -content_box_file = '_partials/content_box_2'
     - menu_file = '_partials/menu_side'
     = render  '_partials/template'
  </code></pre>
  
  <p>In template.slim:</p>
  
  <pre><code>.content-i
          .content-box
            == Slim::Template.new(content_box_file).render(Object.new, 'template_vars' =&gt; template_vars)
  </code></pre>
  
  <p>but it gave this error:</p>
  
  <pre><code>undefined local variable or method `content_box_file' for #&lt;#&lt;Class:0x00000003b28308&gt;:0x00000003b685c0&gt;
  Did you mean?  content_for
  </code></pre>