title: Routing error No route matches {:action=>"/", :controller=>"static_pages"}
body: <p>i'm a ROR newbie who is going through the tutorial by Micheal Hartl. I have follow every steps of the tutorial and i'm stuck with the error regarding the routes. I have gone through all my codes and tried all the solution from google. Long story short i'm trying to get the test pass.</p>
  
  <p>Here is my routes.rb</p>
  
  <pre><code>Rails.application.routes.draw do
  root 'static_pages#home'
  get '/help', to: 'static_pages#help'
  end`
  </code></pre>
  
  <p>Here is the error description</p>
  
  <blockquote>
    <p>1)Error <br> StaticPagesControllerTest#test_should_get_home:
    ActionController::UrlGenerationError: No route matches {:action=>"/", :controller=>"static_pages"} test/controllers/static_pages_controller_test.rb:10: in block in class:StaticPagesControllerTest'
    <br> 2) Error <br> StaticPagesControllerTest#test_should_get_help:
    ActionController::UrlGenerationError: No route matches {:action=>"/help", :controller=>"static_pages"}
    test/controllers/static_pages_controller_test.rb:16:in `block in class:StaticPagesControllerTest'</p>
  </blockquote>
  
  <p>Here is how my rake routes looks like</p>
  
  <blockquote>
    <p><br>root GET  /                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;static_pages#home
    <br>help GET  /help(.:format)&nbsp;&nbsp;&nbsp;&nbsp;    static_pages#help
    <br>about GET  /about(.:format)&nbsp;&nbsp;&nbsp;&nbsp;   static_pages#about
    <br>contact GET  /contact(.:format)&nbsp;&nbsp;&nbsp;&nbsp; static_pages#contact</p>
  </blockquote>
  
  <p>I have tried </p>
  
  <pre><code>root 'static_pages#home'
  get '/static_pages/help', to: 'static_pages#help'
  </code></pre>
  
  <p>or</p>
  
  <pre><code>root 'static_pages#home'
  match '/help',    :to =&gt; 'static_pages#help', via: [:get]
  </code></pre>
  
  <p>yet i still cannot solve the problem. I have been staring at this code and error for days. Please help.</p>
  
  <p>*Edit to include test</p>
  
  <pre><code>test "should get home" do
    get root_path
    assert_response :success
    assert_select "title", "Home | #{@base_title}"
  end
  
  test "should get help" do
    get help_path
    assert_response :success
    assert_select "title", "Help | #{@base_title}"
  end
  </code></pre>