title: Why am I missing template mobile/home/index, application/index?
body: <p>I am learning Ruby and I set up a controller like this:</p>
  
  <pre><code>class Mobile::HomeController &lt; ApplicationController
    def index
  
    end
  
    def create
  
    end
  
  end
  </code></pre>
  
  <p>Which is very basic, and added a route like this:</p>
  
  <pre><code> scope :module =&gt; :mobile, :as =&gt; :mobile do
      constraints(:subdomain =&gt; /m/) do
        resources :home
      end
    end
  </code></pre>
  
  <p>and when I try to see the page in the browser, I get this error:</p>
  
  <pre><code>Missing template mobile/home/index, application/index with {:locale=&gt;[:en, :en], :formats=&gt;[:html], :handlers=&gt;[:haml, :erb, :builder]}. Searched in: * "/Users/alexgenadinik/projects/cmply/cmply-app/app/views" * "/Library/Ruby/Gems/1.8/gems/ckeditor-3.6.3/app/views" * "/Library/Ruby/Gems/1.8/gems/kaminari-0.13.0/app/views" * "/Library/Ruby/Gems/1.8/gems/devise-2.0.4/app/views"
  </code></pre>
  
  <p>but I have a view page here:</p>
  
  <pre><code>app/views/layouts/mobile/application.html.haml
  </code></pre>
  
  <p>Is the problem that I need to specify that I return the HAML format in my controller? Or am I doing something wrong?</p>