title: put a partial inside a content_tag in Application Helper Function Rails
body: <p>I have this in my view but I would like to clean it up and put it all inside a method in a helper.</p>
  
  <p>I know how to put div and some content inside a content_tag. However how do I pass the partial?</p>
  
  <pre><code> &lt;% if show_content?(flash[:invitation]) %&gt;
         &lt;div id="invite_box"&gt;
         &lt;%= render :partial =&gt; 'user/invite', :locals =&gt; {:user =&gt; @user } %&gt;
         &lt;/div&gt;
         &lt;% elsif show_content?(flash[:confirmation]) %&gt;
         &lt;%= render :partial =&gt; 'user/invite_confirmation' %&gt;
         &lt;% end %&gt;
  </code></pre>