title: Multiple layouts in ror
body: <p>Just started Ruby on Rails yesterday. In my layouts/application.html.erb i have:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;&lt;%= full_title(yield(:title)) %&gt;&lt;/title&gt;
      &lt;%= stylesheet_link_tag    "application", media: "all" %&gt;
      &lt;%= javascript_include_tag "application" %&gt;
      &lt;%= csrf_meta_tags %&gt;  
    &lt;/head&gt;
    &lt;body&gt;
      &lt;%= render 'layouts/header' %&gt;
      &lt;div class="container"&gt;
        &lt;%= yield %&gt;
      &lt;/div&gt;
      &lt;%= render 'layouts/footer' %&gt;
    &lt;/body&gt;
  &lt;/html&gt; 
  </code></pre>
  
  <p>Coming from php ->codeigniter background, i'm assuming render is similar to $this->load->view(''); in codeigniter.<br>
  Although this works fine, i would like to have multiple application layout files e.g <br></p>
  
  <ol>
  <li>layout/application default</li>
  <li>layout/application fullwidth(for fullwidth pages)</li>
  <li>and so on..</li>
  </ol>
  
  <p>In codeigniter you simply declare which of the templates/layout files you wish to use but as ruby on rails is a bit magical(It does a lot of things for you), i'm assuming it calls the application layout by default. I was wondering if there's a way to choose what layout file i want?</p>