Easy JavaScript Internationalization in Rails using the I18n-js gem

Ruby on Rails provides a well-documented and established Internationalization API for server-side localization. However, many projects I've seen forget to internationalize their front-end JavaScript framework and end up hard-coding text everywhere. For some people, this works, but for larger projects…

A Happy RSpec, Capybara and DatabaseCleaner Setup

There have been a few times where I ran into problems with RSpec Capybara feature specs and DatabaseCleaner. Spec issues arise because most Capybara JavaScript drivers run your specs on a different thread than the app. This Stack Overflow Answer…

Easy URL Forwarding to Localhost Using Ngrok

URL forwarding to your local dev server be incredibly helpful in several situations: Developing a 3rd Party integration that needs to point to your local server and test it prior to a stage deploy Quick and dirty demos of WIP…

A Process for Upgrading Rails

This post walks through implementing an upgrade process rather than handling the specifics of any one or multiple version upgrades. It may seem simple but reduces risk during an upgrade. This is loosely tied to a Rails projects but could…