title: Routing Error in rails app 'uninitialized constant HomeController'
body: <p>Im new to use foundation and i have created simple Posts app using scaffold
  and i have done following steps:</p>
  
  <pre><code>rails new blog
  </code></pre>
  
  <p>then added following to Gemfile</p>
  
  <pre><code>gem 'foundation-rails'
  group :development do
    gem 'rails_layout'
  end
  </code></pre>
  
  <p>and then</p>
  
  <pre><code>$ bundle install
  $ rails generate layout:install foundation5 --force
  $ rails g scaffold Post title desc:text
  $ rake db:migrate
  </code></pre>
  
  <p>Now app runs fine @ local host port 3000/posts
  <img src="https://i.stack.imgur.com/e62rn.png" alt="enter image description here">
  But when i click on 'Home' button in nav-bar it generates errors:
  <img src="https://i.stack.imgur.com/0bgro.png" alt="enter image description here"></p>
  
  <p>application.html.erb file:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
      &lt;title&gt;&lt;%= content_for?(:title) ? yield(:title) : "Found Rails" %&gt;&lt;/title&gt;
      &lt;meta name="description" content="&lt;%= content_for?(:description) ? yield(:description) : "Found Rails" %&gt;"&gt;
      &lt;%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' =&gt; true %&gt;
      &lt;%# Modernizr is required for Zurb Foundation %&gt;
      &lt;%= javascript_include_tag 'vendor/modernizr' %&gt;
      &lt;%= javascript_include_tag 'application', 'data-turbolinks-track' =&gt; true %&gt;
      &lt;%= csrf_meta_tags %&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;header&gt;
        &lt;%= render 'layouts/navigation' %&gt;
      &lt;/header&gt;
      &lt;main role="main"&gt;
         &lt;%= render 'layouts/messages' %&gt;
         &lt;%= yield %&gt;
      &lt;/main&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>_navigation.html.erb file :</p>
  
  <pre><code>&lt;%# navigation styled for Zurb Foundation 5 %&gt;
  &lt;nav class="top-bar" data-topbar&gt;
    &lt;ul class="title-area"&gt;
      &lt;li class="name"&gt;&lt;%= link_to 'Home', root_path %&gt;&lt;/li&gt;
      &lt;li class="toggle-topbar menu-icon"&gt;&lt;a href="#"&gt;Menu&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
    &lt;div class="top-bar-section"&gt;
      &lt;ul&gt;
        &lt;%= render 'layouts/navigation_links' %&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/nav&gt;
  </code></pre>
  
  <p>My routes.rb file:</p>
  
  <pre><code>Rails.application.routes.draw do
    resources :posts
    root :to =&gt; "home#index"
  
    # The priority is based upon order of creation: first created -&gt; highest priority.
    # See how all your routes lay out with "rake routes".
  
    # You can have the root of your site routed with "root"
    # root 'welcome#index'
  
    # Example of regular route:
    #   get 'products/:id' =&gt; 'catalog#view'
  
    # Example of named route that can be invoked with purchase_url(id: product.id)
    #   get 'products/:id/purchase' =&gt; 'catalog#purchase', as: :purchase
  
    # Example resource route (maps HTTP verbs to controller actions automatically):
    #   resources :products
  
    # Example resource route with options:
    #   resources :products do
    #     member do
    #       get 'short'
    #       post 'toggle'
    #     end
    #
    #     collection do
    #       get 'sold'
    #     end
    #   end
  
    # Example resource route with sub-resources:
    #   resources :products do
    #     resources :comments, :sales
    #     resource :seller
    #   end
  
    # Example resource route with more complex sub-resources:
    #   resources :products do
    #     resources :comments
    #     resources :sales do
    #       get 'recent', on: :collection
    #     end
    #   end
  
    # Example resource route with concerns:
    #   concern :toggleable do
    #     post 'toggle'
    #   end
    #   resources :posts, concerns: :toggleable
    #   resources :photos, concerns: :toggleable
  
    # Example resource route within a namespace:
    #   namespace :admin do
    #     # Directs /admin/products/* to Admin::ProductsController
    #     # (app/controllers/admin/products_controller.rb)
    #     resources :products
    #   end
  end
  </code></pre>
  
  <p>What is it that im missing?.</p>