title: Routing Error during "Ruby on Rails-Tutorial"
body: <p>It seems like some people here had this problem but I couldn't find any solution in another topic.</p>
  <p>I am doing Chapter 3 of the Ruby on Rails-Tutorial, working on the static pages. When I want to open them on the localhost it gives me a &quot;Routing Error&quot; in the Browser.</p>
  <p>My Ruby is currently on version 1.9.3.
  My Rails is currently on version 3.2.</p>
  <p>I have tried:</p>
  <ul>
  <li>restarting the server</li>
  <li>saving all the files again</li>
  <li>checking any issues in the static_pages_controller.rb</li>
  <li>checking any issues in the routes.rb</li>
  <li>checking any issues in the static_oages_spec.rb</li>
  </ul>
  <p>Also there are no bugs in the HTML code of the single static page. And I can't find any more help in the tutorial, neither in other questions here on StackOverflow.</p>
  <hr />
  <p>Edit:</p>
  <p>This is the actual error message from the browser:</p>
  <blockquote>
  <p>Routing Error</p>
  <p>No route matches [GET] &quot;/static_pages/home&quot; Try running
  rake routes for more information on available routes.</p>
  </blockquote>
  <p>if I go to <code>http://localhost:3000/static_pages/home</code>, to one of three static pages I have.</p>
  <p>This is routes.rb:</p>
  <pre><code>SampleApp::Application.routes.draw do
    
  get &quot;static_pages/home&quot;
  
  get &quot;static_pages/help&quot;
  
  get &quot;static_pages/about&quot;
  
  end
  </code></pre>
  <p>Also, I tried &quot;<code>rake routes</code>&quot; in the terminal, too. This is the result:</p>
  <pre><code>home_static_pages GET    /static_pages/home(.:format)  static_pages#home
   help_static_pages GET    /static_pages/help(.:format)  static_pages#help
  about_static_pages GET    /static_pages/about(.:format) static_pages#about
        static_pages POST   /static_pages(.:format)       static_pages#create
    new_static_pages GET    /static_pages/new(.:format)   static_pages#new
   edit_static_pages GET    /static_pages/edit(.:format)  static_pages#edit
                     GET    /static_pages(.:format)       static_pages#show
                     PUT    /static_pages(.:format)       static_pages#update
                     DELETE /static_pages(.:format)       static_pages#destroy
  </code></pre>
  <p>And this is the error message the server is giving me:</p>
  <pre><code>Started GET &quot;/static_pages/home.html&quot; for 127.0.0.1 at 2012-04-03 13:23:54 +0200
  
  ActionController::RoutingError (No route matches [GET] &quot;/static_pages/home.html&quot;):
    actionpack (3.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
    actionpack (3.2.3) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
    railties (3.2.3) lib/rails/rack/logger.rb:26:in `call_app'
    railties (3.2.3) lib/rails/rack/logger.rb:16:in `call'
    actionpack (3.2.3) lib/action_dispatch/middleware/request_id.rb:22:in `call'
    rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
    rack (1.4.1) lib/rack/runtime.rb:17:in `call'
    activesupport (3.2.3) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
    rack (1.4.1) lib/rack/lock.rb:15:in `call'
    actionpack (3.2.3) lib/action_dispatch/middleware/static.rb:62:in `call'
    railties (3.2.3) lib/rails/engine.rb:479:in `call'
    railties (3.2.3) lib/rails/application.rb:220:in `call'
    rack (1.4.1) lib/rack/content_length.rb:14:in `call'
    railties (3.2.3) lib/rails/rack/log_tailer.rb:14:in `call'
    rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
    /Network/Servers/pluto.kayoom.lan/Users/benediktkrebs/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
    /Network/Servers/pluto.kayoom.lan/Users/benediktkrebs/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
    /Network/Servers/pluto.kayoom.lan/Users/benediktkrebs/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
  </code></pre>