Project

railbar

0.0
The project is in a healthy, maintained state
A status bar for development and testing rails environments to distinguish between development, staging, and production environments and show status of turbo/hotwire
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 7.0
 Project Readme

Railbar

in the past it happend quite often to me that I confused any staging/test or even production system with my local development system because they look usually pretty the same. Luckily not a lot of harm done except for some lost time and confusion so far. That's why I came up with the idea of Railbar for Ruby on Rails, a HTML rendered bar that makes it obvious which system you are currently working on. And when creating such a bar, why not adding some status checks like for Turbo or Stimulus with it?

Installation

Add this line to your Rails application's Gemfile:

gem 'railbar'

Optionally only in your development group.

$ bundle install

finally add the bar to your layout file, e.g. app/views/layouts/application.html.erb

...
<%= railbar %>

Configuration

coming ...