How to get rid of this routing error related to favicon.ico

Any ideas on how to get rid of this error.

GET "/favicon.ico" was launched for 132.175.48.49 on 2012-12-18 11:20:59 +0000

ActionController::RoutingError (No route matches [GET] "/favicon.ico"): actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app' railties (3.2.8) lib/rails/rack/logger.rb:16:in `call' actionpack (3.2.8) 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' 
+6
source share
1 answer

You probably have a line like this (most likely in your application application.html.erb or some other template):

 <link href="/favicon.ico" rel="shortcut icon" /> 

If you do, just change it to:

 <link href="/assets/favicon.ico" rel="shortcut icon" /> 
+5
source

All Articles