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.
In some older Capybara versions (e.g. 0.3.9), we're getting lots of deprecations warnings: Selenium::WebDriver::Element#select is deprecated...
This is one possibility to do this. There are other and maybe even better ways to do this.
When you do a script/dbconsole -p, your MySQL shell will already be using UTF-8. When you call it yourself...
We love Markdown. We use it wherever we can for text formatting. In a web app, the obvious place for...
This is surprisingly difficult when there is a with the same text on the page, but you really want to...
Pour color on your Rails console with awesome_print. Turn confusing long strings into formatted output. Have objects and classes...
Install libreadline: sudo apt-get install libreadline-dev Reinstall the ruby and tell rvm where to find readline
Bundler 1.1 has been released. With this version you no longer need to wait for this: Fetching source index…
Online tool to test how a site behaves in popular desktop, tablet and phone resolutions.
This article shows how to create a Sass mixin for a colored button. The button's foreground color is dynamically...
If you want to know your public key's fingerprint, do this: ssh-keygen -lf ~/.ssh/my.key.pub This may be necessary...
This only applies to RSpec below version 1.3.2. The issue has been fixed in RSpec 1.3.2, and most likely RSpec...