title: Layout not working with HAML
body: <p>I am new to ruby on rails.
  I recently converted my erb files to haml files manually. I am facing a weird issue now. I have two controllers and a couple of views. The home page shows the layout correctly but the other views do not. I am trying to use "application.html.haml" for the layout (which is picked up by default).</p>
  
  <ol>
  <li>application.html.haml resides in app/views/layouts</li>
  <li>All the controllers except ApplicationController have ApplicationController as their parent class. ApplicationController has ActionController::Base as its parent class</li>
  <li>The home page shows all the tags from the application.html.haml layout. However, the other pages do not include those tags. Their source code does not contain html, body, head etc.</li>
  <li>I do not have the layout specified in any of the controllers.</li>
  </ol>
  
  <p>When I add the tags to the views, everything works. But, I shouldn't have to do that, right?</p>
  
  <p>application.html.haml</p>
  
  <pre><code>!!! 5
  %html
    %head
      %title XYZ
      = stylesheet_link_tag "application", :media =&gt; "all"
      = javascript_include_tag "application"
      = csrf_meta_tags
    %body
      = yield
  </code></pre>
  
  <p>my_controller.rb</p>
  
  <pre><code>require 'somefile'
  
  class MyController &lt; ApplicationController
  
  
    def initialize
      @information = Information.new  # inside models folder
    end
  
    def fetch_information
      input = params[:search]
      input = input.strip
      flash[:error] = nil
      @hosts = @information.host(input)
      if @hosts.count == 0
        flash[:error] = "N/A: #{input}!" 
      else
        # add to cookies
      end
    end
  end
  </code></pre>