Last Updated: February 25, 2016
· accessd

Gem to display the rails environment on the favicon

Made changes in the code to debug and do not understand what's wrong. Hell, I'm on the debug production! This happened to you? To me several times. Library offers one of the ways to solve this problem.

Most everyone will understand from one picture:


This means that on the first tab we have development environment, on second stage, and third it's production(we don't need change this favicon).

It uses Tinycon - A small library for manipulating the favicon.

And one more option:


Icon will be gray on non production environment.

Link to the gem:

7 Responses
Add your response


Nice gem, however it wil be better if it was a middleware instead of js file

over 1 year ago ·

@seuros possible, but there are several moments:

  1. How to prevent caching favicon by browser?
  2. Suppose we will use rmagick, then in all environments will need to install imagemagick

And yes, I tried to do it, you can look at branch rmagick

over 1 year ago ·
  • by adding expire header when we send the file
  • I would prefer minimagick for performance. I could put the rails-env-favicon in all groups execpt production for example. The option of js will still be available, but the person has to remove it just before deploying to production.
over 1 year ago ·


by adding expire header when we send the file

not getting it done, help is welcome:)

over 1 year ago ·

Will do!

over 1 year ago ·

Now you may use version with middleware!

over 1 year ago ·


over 1 year ago ·