title: How to render application.html.erb in a Rails app?
body: <p>How can I render the <code>application.html.erb</code> view in a rails app? </p>
  
  <p>I've tried adding a method to the <code>application_controller.rb</code> controller:</p>
  
  <pre><code>def amethod
  end
  </code></pre>
  
  <p>And then updating the <code>routes.rb</code> file:</p>
  
  <pre><code>get '/', to: 'application#amethod'
  </code></pre>
  
  <p>to no avail. I get this error message:</p>
  
  <p><strong>Missing template application/amethod with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :jbuilder]}. Searched in: * "/Users/peterward/Directory/mini-project/app/views"</strong></p>
  
  <p>It's looking for the <code>html.erb</code> view in the <code>app/views</code> directory instead of the <code>app/views/layouts</code> directory. </p>
  
  <p>How can I change this?</p>