title: Missing template Error in ruby
body: <p>I am new to rails and I am facing this error whenever I try to reload the server page and actually I tried almost all the provided solutions for this problem asked by other people and nothing helped</p>
  
  <blockquote>
    <p><strong>Missing template home/index, application/index with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw,
    :ruby, :coffee, :jbuilder]}. Searched in: *
    "/Users/Bassem/Qulb/app/views" *
    "/Library/Ruby/Gems/2.0.0/gems/twitter-bootstrap-rails-3.2.0/app/views"
    * "/Library/Ruby/Gems/2.0.0/gems/devise-3.5.1/app/views"</strong></p>
  </blockquote>
  
  <p><strong><em>ps: I am not using haml and I also tried rendering nothing inside it</em></strong></p>
  
  <p>All what I did in my app is just implementing devise and adding these things to my </p>
  
  <p><strong>application.html</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Qulb&lt;/title&gt;
    &lt;%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' =&gt; true %&gt;
    &lt;%= javascript_include_tag 'application', 'data-turbolinks-track' =&gt; true %&gt;
    &lt;%= csrf_meta_tags %&gt;
  
    &lt;!-- Latest compiled and minified CSS --&gt;
    &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"&gt;
  
    &lt;!-- Optional theme --&gt;
    &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css"&gt;
  
    &lt;!-- Latest compiled and minified JavaScript --&gt;
    &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"&gt;&lt;/script&gt;
  
  
  
  &lt;/head&gt;
  &lt;body&gt;
  
    &lt;div class="container"&gt;
      &lt;nav class="navbar navbar-default"&gt;
        &lt;div class="container-fluid"&gt;
          &lt;div class="navbar-header"&gt;
            &lt;button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-3" aria-expanded="false"&gt;
              &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
              &lt;span class="icon-bar"&gt;&lt;/span&gt;
              &lt;span class="icon-bar"&gt;&lt;/span&gt;
              &lt;span class="icon-bar"&gt;&lt;/span&gt;
            &lt;/button&gt;
            &lt;a class="navbar-brand" href="#"&gt;Home&lt;/a&gt;
          &lt;/div&gt;
          &lt;div class="collapse navbar-collapse" id="bs-example-navbar-collapse-3"&gt;
            &lt;button type="button" class="btn btn-default navbar-btn"&gt;Sign in&lt;/button&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/nav&gt;
  
  
  
    &lt;%= yield %&gt;
  
    &lt;/div&gt;
  
  
  
  
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>and here is it my <strong>routes.rb</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>Rails.application.routes.draw do
    resources :books
    devise_for :users
    root 'home#index'
  end</code></pre>
  </div>
  </div>
  </p>
  
  <p>and finally my <strong>home_controller</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>class HomeController &lt; ApplicationController
    def index
      redirect_to books_path if user_signed_in?
  end
  end</code></pre>
  </div>
  </div>
  </p>