Programatically invoke Rails generators Require the generator, instantiate it and invoke it (because generators are Thor::Groups, you need...

Rubygems can produce lots of deprecation warnings, but sometimes, you cannot fix them. To have a tidy terminal with output...

If you want to label things with a color but don't actually care which cholor, you can use the...

So you have a restangular collection and you want to remove an element from it, after you've successfully deleted...

github.com

better_errors is an awesome gem for enhanced error pages in development, featuring a live-REPL for some light debugging...

github.com

All the hidden and not hidden features of Git and GitHub.

makandra dev
github.com

We now have a gem that supports our form model approach.

makandra dev
github.com

Directory of popular Github projects.

Development environment setup Rails Composer Basically a comprehensive Rails Template. Prepares your development environment and lets you select web server...

String#indent is not a standard Ruby method. When you use it, be sure to know where this method comes...

Using git checkout - you can switch back to the branch you previously worked on. (master) $ git checkout foobar

Tests are about 100% control over UI interaction and your test scenario. Randomness will eventually cause flaky tests that are...

Warning: Because of (unclear) rounding issues and missing decimal places (see examples below), do NOT use this when dealing with...

blog.plenz.com

If you recorded a bad fix for a conflict, you can tell git to forget that bad resolution:

dev.housetrip.com

Introducing Trailer from HouseTrip, a simple menu bar app that helps you manage your GitHub pull requests. It’s one...

coderwall.com

There seems to be no way to use therubyracer -v '0.11.4' and libv8 -v '3.11.8.17' on OS X Mavericks.

dev.mysql.com

A MySQL DECIMAL column is used when it is important to preserve exact precision. It takes two parameters, where...

Rbenv won't compile REE 2011.03 properly on Ubuntu 12.04, failing with an error in tcmalloc.cc. If you want to...

We have released Modularity 2. It has many incompatible changes. See below for a script to migrate your applications automatically...

When you do something like this in your code: def var_value @var ||= some_expensive_calculation end

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

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

Just a quick note that Virtus can coerce (auto-cast) structured values like collections or maps: class Klass include Virtus.model...

Ubuntu 12.04 LTS x64, Ruby 1.8.7, Rails 2.13, PDFKit 0.5.4, Phusion Passenger Apache 2 I ran into this, when I...