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: https://github.com/accessd/rails-env-favicon
Written by Andrey
Related protips
7 Responses
Nice gem, however it wil be better if it was a middleware instead of js file
- 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.
Will do!
Now you may use version with middleware! https://github.com/accessd/rails-env-favicon/tree/rmagick
good