title: Rails does not route to root 'welcome.index'
body: <p>ruby -v = 2.1.6p336</p>
  
  <p>rails -v = 4.2.1</p>
  
  <p>MySQL --version = 14.14</p>
  
  <p>New to programming and Rails.   Going through tutorials.</p>
  
  <p>did <code>rails generate controller welcome index</code>.</p>
  
  <p>Rails Server  - localhost:3000 shows Welcome aboard page.</p>
  
  <p>Change config/routes.rb file...  un-comment out  root 'welcome#index'    (got rid of the #.    (line 8)
  Rails Server  - localhost:3000 shows error.</p>
  
  <p>----------copied from localhost:3000------------------------------------------</p>
  
  <pre><code>ExecJS::ProgramError in Welcome#index
  Showing c:/row/dev/readit/app/views/layouts/application.html.erb where line #6 raised:
  
  TypeError: Object doesn't support this property or method
  Rails.root: c:/row/dev/readit
  
  Application Trace | Framework Trace | Full Trace
  app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb___173287605_49138164'
  </code></pre>
  
  <hr>
  
  <p>commented the root 'welcome#index' out again, and I have the Welcome Aboard page back.</p>
  
  <p>If I execute localhost:3000/index
  I get a routing error.     No route matches [GET] "/index"</p>
  
  <p>I have:</p>
  
  <pre><code>controllers/welcome_controller.rb
  views/welcome/index.html.erb
  </code></pre>
  
  <p>this is the start of the config/routes.rb file -----------------</p>
  
  <pre><code>Rails.application.routes.draw do
    get 'welcome/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'
  </code></pre>
  
  <hr>
  
  <p>How do I get the <code>config/routes.rb</code> file to display the <code>views/welcome/index.html.erb</code> file?</p>
  
  <p>Does this have anything to do with the MySQL socket I'm suppose to put in the <code>config/database.yml</code>  ?    Because I don't what to put there.</p>