All our projects have enum-like requirements like this: An attribute value must be included in a given set of...
Controller responses often include Javascript code that contains values from Ruby variables. E.g. you want to call a Javascript function...
By default, Google Analytics tracks the current URL for every request. Sometimes you will want to track another URL instead...
zClip is a lightweight jQuery "copy to clipboard" plugin built using the popular Zero Clipboard library. This plugin uses an...
A small library to provide the Rails I18n translations in Javascript clients.
CodeMirror is a JavaScript component that provides a code editor in the browser. When a mode is available for the...
An association defined with has_many :through will return the same record multiple times if multiple join models for the...
xterm by default uses black text on white background. To change that to something like "light gray on black", do...
This is for you if Passenger gives you the following useless error message. Passenger encountered the following error:\ The application...
You can change which branches will be pushed when saying git push. Our recommendation is to set it to current...
The default behavior of Calc is that when you paste cells from the clipboard, it overwrites whatever cells occupy the...
This is a way to run multiple redis server on one ubuntu server. These steps you have to do only...
After installing Bundler 1.1 you will get the following warning when running tests: WARNING: Cucumber-rails required outside of env.rb...
How to get a backtrace from a running Ruby process: Ruby 2.6 # First, find out the PID of your Ruby...
Solution to share a todo.txt file over Dropbox and make it editable on Android und iOS devices. Also comes with...
validates_acceptance_of :terms only works if terms is set to a value. The validation is skipped silently when terms...
When you create a new branch and push it to origin, you won't be tracking it. This means a...
You won't usually have to do this. It's OK to route all formats to a controller, and let...
When talking to your MySQL server via a mysql shell, you can terminate queries by ; or \G -- the latter gives...
The following two hints are taken from Github's Ruby style guide: If your regular expression mentions a lot of...
This is a demo of the "Tabby" Javascript jQuery plugin to use tabs in regular textareas to make them suitable...
KeyboardJS is a library for binding to keys or key combos
Usually you don't need to, but when you want to see which queries your MySQL server currently needs to...
Capybara has a global option (Capybara.ignore_hidden_elements) that determines whether Capybara sees or ignores hidden elements.