Read more

Rails Env Widget

Dominik Schöler
June 27, 2016Software engineer at makandra GmbH

Have you ever mistaken one Rails environment for another? The attached helper will help you to never do it again.

Illustration UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
Read more Show archive.org snapshot

Save the attached file to app/helpers/ and use the widget in your layout like this:

%body
  = rails_env_widget unless Rails.env.production?

It'll render a small light gray box in the top left corner of your screen, containing the current Rails environment. On click, it'll disappear. Actually, it has the same UX as our Query Diet widget Show archive.org snapshot .

Posted by Dominik Schöler to makandra dev (2016-06-27 08:10)