title: case statement inside of partial stops partial from working but works outside of partial
body: <p>This is a very strange problem.  I have a partial that is called like this:</p>
  
  <pre><code>&lt;%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %&gt;
      &lt;%= render 'layouts/logged_in/registration_form_header', f: f %&gt;
      ....
  &lt;% end %&gt;
  </code></pre>
  
  <p>The partial works like this:</p>
  
  <pre><code>Here is some text
  &lt;% puts "inside the partial %&gt;
  </code></pre>
  
  <p>The <code>puts</code> statement shows in the console and the text displays.  If I add a case statement like this:</p>
  
  <pre><code>&lt;% case @type %&gt;
  &lt;% when 'Organization' %&gt;
    its an organization
  &lt;% when 'Presenter' %&gt;
        111111
        &lt;% puts "this statement is being evaluated" %&gt;
        &lt;%= "inside the partial" %&gt;
        222222
  &lt;% end #case statement for type %&gt; 
  </code></pre>
  
  <p>In the statement above, <code>@type</code> is defined as <code>"Presenter"</code> in the controller action.  I know this works because the <code>puts</code> statement is properly displaying in the console.  The only text that is outputed to the browser, however, is 222222.  The "inside the partial" string does not appear on the screen nor does the 111111.  I know that the <code>&lt;% when 'Presenter' %&gt;</code> code is what's being run because the puts statement works and the 222222 is appearing, but why is the rest of the content not appearing?  If I take the case statement outside of the partial and display it within the original code file, everything works as it should.  </p>