title: Render specific header for specific page
body: <p>I'm new to RoR and using layouts/partials/rendering, all that good stuff, to make an app.  At the beginning of my app I thought I would use the same header for the entire app, and thus wrote:</p>
  
  <pre><code>render 'layouts/header'
  </code></pre>
  
  <p>in my <code>application.html.erb</code> file.  Now, I realized that for certain pages (i.e. sign up page and blog) I want to use a simplified header called <code>simple_header</code>.  Do I write something like </p>
  
  <pre><code>&lt;%= if @simple_header
          render 'layouts/simple_header'
      else 
          render 'layouts/header' 
  %&gt;
  </code></pre>
  
  <p>and then test if <code>@simple_header</code> is true or something in a controller, or is there a better way to do this.  Thanks.</p>