TLDR: This card explains which threads and processes interact with each other when you run a Selenium test with Capybara...

tl;dr: Using has_many associations with a :through option can lead to lost or duplicate records. You should avoid...

We've since created ActiveType which has a restricted subset of Virtus' features. It might be enough for your needs...

In Ruby, classes and modules are called constants. This card explains how Ruby resolves the meaning of a constant.

Modern IRB has time measurement built in. measure # Enable measure :off # Disable Custom Should your version of IRB not offer...

stackoverflow.com

Before Rails 3.2.14, when supplying an invalid locale to I18n, it would fall back to its config.i18n.default_locale (which is...

If you're still working on ruby 1.8, you should know that using SimpleDelegator is often prohibitively slow. I have...

This error occurs when you already have a database.yml which defines the database for the cucumber environment instead of test...

stackoverflow.com

When you want to find out the data type of an attribute, you can just use ActiveRecord's columns_hash...

alanklement.blogspot.de

I've written about the problem with user stories before. At the time, I found it better to just have...

If you get a Quota error with OpenStack, it doesn't have to be what it tell. For example, I...

fontawesome.io

Font Awesome 4 has renamed all icons. What the fuck. Check the attached link for an icon list for the...

Whenever you create a table from a database migration, remember to add updated_at and created_at timestamps to that...

A snippet of the carrierwave documentation You might come to a situation where you want to retroactively change a version...

Install and configure the AWS Command Line Interface Show existing certificates to test if the AWS Cli is working:

If you need to enable NewRelic monitoring on certain machines within the same Rails environment, a simple solution is to...

Rails has always included a scaffold script that generates a default controller implementation for you. Unfortunately that generated controller is...

It is good programming practice to Don't Repeat Yourself (or DRY). In Ruby on Rails we keep our code...

So you client has asked you to implement a row of buttons to like the URL on Facebook, Twitter and...

When writing Rails migrations to convert a string column to an integer you'd usually say: change_column :table_name...

I recently experienced the error ActiveRecord::StatementInvalid: Mysql2::Error: closed MySQL connection. Apparently this happens when there is a timeout...

There may be reasons to change the locale of your Postgres cluster. A popular one is your development system's...

Working with lists in Javascript is painful because the native Array class is so poorly designed. One way to reduce...

makandra dev
docs.google.com

Presentation about awesome changes we can look forward to.