Rack middleware that injects a message into HTML responses.
By message I mean a div element
This give us the ability to, for example, add a message indicating that the server is staging or any other QA environment without have to modify our code base
Add the following line to your Gemfile
gem "rack-showme"
And run bundle install
Then add the following lines to an enviroment file e.g. config/environments/development.rb
require "rack/showme
config.middleware.use "Rack::Showme"
Rack::Showme::Options.message = "Development"
You can select between three colorschemes yellow
, green
and red
Rack::Showme::Options.colorscheme= "yellow"
Rack::Showme::Options.colorscheme= "green"
Rack::Showme::Options.colorscheme= "red"
This is useful to easily distinguish between diferent enviroments e.g. development and staging
If you discover a problem with Rack::Showme, please, open a Issue and include the more info you can.
Do you have an idea about how do Rack::Showme better, don't hesitate in fork the project and send a pull request
Simple rails app without Rack::Showme
Default colorscheme (yellow)
Green colorscheme
Red colorscheme
MIT License Copyright 2013 Nearsoft
Nearsoft is a software product development service, with operations in Mexico. We work with ISVs, SaaS companies and consumer-facing sites. Thanks to our software engineering approach and experience, we help our clients get their products (and their companies) out to market faster.