title: Rails 3.2.13: Routing Error (No route matches [GET] "/stylesheets/application.css")
body: <p><strong>Update</strong></p>
  
  <p>Here are the search results for 'asset' in my app (excluding log).</p>
  
  <blockquote>
    <p>./app/assets/javascripts/application.js:4:// Any JavaScript/Coffee
    file within this directory, lib/assets/javascripts,
    vendor/assets/javascripts,</p>
    
    <p>./app/assets/javascripts/application.js:5:// or
    vendor/assets/javascripts of plugins, if any, can be referenced here
    using a relative path. </p>
    
    <p>./app/assets/stylesheets/application.css:5: *
    Any CSS and SCSS file within this directory, lib/assets/stylesheets,
    vendor/assets/stylesheets, </p>
    
    <p>./app/assets/stylesheets/application.css:6:
    * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path. </p>
    
    <p>./config/application.rb:7:  # If you
    precompile assets before deploying to production, use this line</p>
    
    <p>./config/application.rb:8:  Bundler.require(*Rails.groups(:assets =>
    %w(development test))) </p>
    
    <p>./config/application.rb:9:  # If you want your
    assets lazily compiled in production, use this line</p>
    
    <p>./config/application.rb:10:  # Bundler.require(:default, :assets,
    Rails.env) </p>
    
    <p>./config/application.rb:54:    # Enable the asset pipeline</p>
    
    <p>./config/application.rb:55:    config.assets.enabled = true</p>
    
    <p>./config/application.rb:57:    # Version of your assets, change this
    if you want to expire all your assets </p>
    
    <p>./config/application.rb:58:   config.assets.version = '1.0' </p>
    
    <p>./config/environments/development.rb:9: 
    config.assets.enabled = false </p>
    
    <p>./config/environments/development.rb:34: # Do not compress assets </p>
    
    <p>./config/environments/development.rb:35:  config.assets.compress = false
    ./config/environments/development.rb:37:  # Expands the lines which
    load the assets </p>
    
    <p>./config/environments/development.rb:38: 
    config.assets.debug = true </p>
    
    <p>./config/environments/production.rb:11:  #
    Disable Rails's static asset server (Apache or nginx will already do
    this) </p>
    
    <p>./config/environments/production.rb:12: 
    config.serve_static_assets = true</p>
    
    <p>./config/environments/production.rb:15:  config.assets.compress = true</p>
    
    <p>./config/environments/production.rb:17:  # Don't fallback to assets
    pipeline if a precompiled asset is missed</p>
    
    <p>./config/environments/production.rb:18:  config.assets.compile = true</p>
    
    <p>./config/environments/production.rb:20:  # Generate digests for assets
    URLs </p>
    
    <p>./config/environments/production.rb:21:  config.assets.digest =
    true </p>
    
    <p>./config/environments/production.rb:23:  # Defaults to
    Rails.root.join("public/assets")</p>
    
    <p>./config/environments/production.rb:24:  # config.assets.manifest =
    YOUR_PATH </p>
    
    <p>./config/environments/production.rb:45:  # Enable serving of
    images, stylesheets, and JavaScripts from an asset server</p>
    
    <p>./config/environments/production.rb:46:  #
    config.action_controller.asset_host = "<a href="http://assets.example.com" rel="nofollow">http://assets.example.com</a>"</p>
    
    <p>./config/environments/production.rb:48:  # Precompile additional
    assets (application.js, application.css, and all non-JS/CSS are
    already added) </p>
    
    <p>./config/environments/production.rb:49:  #
    config.assets.precompile += %w( search.js )</p>
    
    <p>./config/environments/test.rb:10:  # Configure static asset server for
    tests with Cache-Control for performance</p>
    
    <p>./config/environments/test.rb:11:  config.serve_static_assets = true</p>
    
    <p>./Gemfile:30:# Gems used only for assets and not required</p>
    
    <p>./Gemfile:32:group :assets do ./README.rdoc:159:  |   |-- assets</p>
    
    <p>./README.rdoc:192:      |-- assets ./README.rdoc:199:app/assets</p>
  </blockquote>
  
  <p>I also tried including the asset tags in raw html, as in <code>&lt;script src="assets/application.js"&gt;&lt;/script&gt;</code>, but it didn't work either.</p>
  
  <hr>
  
  <p>I'm working on a <code>Rails 3.2.13</code> app and have encountered the following problem:
  the app/assets files don't seem to get run!</p>
  
  <p>In my <strong>application.html.erb</strong> file:</p>
  
  <pre><code>  &lt;%= stylesheet_link_tag    "application" %&gt;
    &lt;%= javascript_include_tag "application" %&gt;
  </code></pre>
  
  <p>When I run <code>rails server</code>, I see the following error message in the log:</p>
  
  <pre><code>Started GET "/stylesheets/application.css" for 127.0.0.1 at 2013-07-20 15:34:51
  -0400
  
  ActionController::RoutingError (No route matches [GET] "/stylesheets/application .css"):
  actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in ` call'
  actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
  railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
  railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
  activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
  railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
  actionpack (3.2.13)lib/action_dispatch/middleware/request_id.rb:22:in `call'
  rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
  rack (1.4.5) lib/rack/runtime.rb:17:in `call'
  activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
  rack (1.4.5) lib/rack/lock.rb:15:in `call'
  actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
  railties (3.2.13) lib/rails/engine.rb:479:in `call'
  railties (3.2.13) lib/rails/application.rb:223:in `call'
  rack (1.4.5) lib/rack/content_length.rb:14:in `call'
  railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
  rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
  c:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
  c:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
  c:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
  
  Rendered
  c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb
   within resc ues/layout (1.0ms)
  </code></pre>
  
  <p>At the same time, there are error messages for the other assets as well (js files, css etc).  Another example:</p>
  
  <pre><code>Started GET "/javascripts/application.js" for 127.0.0.1 at 2013-07-20
  15:34:51 - 0400 ActionController::RoutingError (No route matches [GET] "/javascripts/application .js"): ...
  </code></pre>
  
  <p>I've tried restarting the server, restarting my computer, but it doesn't help. 
  I have also attempted copying development.rb and production.rb files from other functional apps, but no effect either.</p>
  
  <p>Can anyone please help?  </p>
  
  <hr>
  
  <p>Here are my assets search path, by running  <code>Rails.application.config.assets.paths</code>:</p>
  
  <blockquote>
    <p>["c:/Users/user/rails_projects/fyff/app/assets/images",
    "c:/Users/user/rails_ projects/fyff/app/assets/javascripts",
    "c:/Users/user/rails_projects/fyff/app/as sets/stylesheets",
    "c:/Users/user/rails_projects/fyff/vendor/assets/javascripts" ,
    "c:/Users/user/rails_projects/fyff/vendor/assets/stylesheets",
    "c:/RailsInstal
    ler/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/coffee-rails-3.2.2/lib/assets/javascripts ",
    "c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/best_in_place-1
    152e2256afd/lib/assets/javascripts",
    "c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/
    1.9.1/bundler/gems/bootstrap-switch-rails-2cb6f83ee23e/vendor/assets/javascripts
    ",
    "c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/bootstrap-switc
    h-rails-2cb6f83ee23e/vendor/assets/stylesheets",
    "c:/RailsInstaller/Ruby1.9.3/li
    b/ruby/gems/1.9.1/gems/jquery-rails-3.0.1/vendor/assets/javascripts",
    "c:/RailsI
    nstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bootstrap-sass-2.3.2.0/vendor/assets
    /images",
    "c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bootstrap-sass-2
    .3.2.0/vendor/assets/javascripts",
    "c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.
    9.1/gems/bootstrap-sass-2.3.2.0/vendor/assets/stylesheets"]</p>
  </blockquote>
  
  <p>which looks just fine to me...</p>