Consul 0.4.0 comes with some new features. Dependencies Consul no longer requires assignable_values, it's optional for when you...
paper_trail is an excellent gem to track record versions and changes. You almost never want to reimplement something like...
The will_paginate gem will show a default of 30 records per page. If you want to test pagination in...
Sometimes, you may want to open up a second database connection, to a read slave or another database. When doing...
This will make MySQL log all received queries so you can see for yourself what happens on the database level...
Makandra cards will auto-detect the language used for syntax highlighting. This auto-detection sometimes fails for short code snippets...
When you use method_missing to have an object return something on a method call, always make sure you also...
When refactoring a sequence of steps to a new, more descriptive step, you can use the steps method and Ruby...
In Rails 3.1+, instead of defining a separate up and down method you can define a single method change:
Updated the card with our current best practice (shared app code and specs via symlinks).
Sometimes you need to remove high Unicode characters from a string, so all characters have a code point between 0...
The Rails community has been abuzz with object-oriented programming, SOLID principles, laws, design patterns, and other principles, practices, and...
This sounds promising: The best part from the Rails side, is that you don’t have to change anything at...
On case-insensitive file systems like Mac's HFS+ (per default – you may change this, but it won't work...
If you're suffering from a huge de.yml or similiar file, cry no more. Rails lets you freely organize your...
If you upgrade to the mysql2 gem, you will run into the problem that the server's database.yml (which is...
Last week saw a security issue with rails 2.3 that required a fix. While an official patch was provided, the...
In large forms (30+ controls) new Capybara version become [extremely slow] when filling out fields. It takes several seconds per...
This script loads a dump into your development database. You can provide the full path to you database dump like...
When using the asset pipeline your assets (images, javascripts, stylesheets, fonts) live in folders inside app: app/assets/fonts app/assets/images...
deploy-to-production now calls Capistrano with bundle exec since we started to bundle Capistrano in all projects.
The following code activates autoloading using ActiveSupport 3.x: require 'active_support' require 'active_support/dependencies' relative_load_paths = %w[app/controllers...
Probably was in the repository once and got deleted in a commit that you pulled.
Localizing a non-trivial application can be a huge undertaking. This card will give you an overview over the many...