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

makandra dev

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

confreaks.com

Opal is a source to source ruby to javascript compiler, corelib and a runtime implementation that currently passes 3000 rubyspecs...

If you want to sort a Ruby array with a primary, secondary, etc. criterium, use a sort_by that contains...

On recent/fresh installations of Ruby 1.8.7 you may encounter this error why calling any bundled binary (or just bundle exec...

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

When a Ruby block or proc takes multiple parameters, and you call it with an Array, Ruby will unexpectedly splat...

An annoying part of using font icons is that the icons usually need to live in the DOM. This is...

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...

Goal Within before_* Within after_* Cancel later callbacks throw :abort throw :abort Rollback the transaction throw :abort raise ActiveRecord::Rollback...

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

Ruby publishes security issues and MRI updates on ruby-lang.org. Unfortunately there is no straight-forward way to subscribe to these...

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...

makandra dev
ablogaboutcode.com

After reading, you will know why and how runners.each(&:run) works. Here some tidbits: & can be quite confusing because it...

Today I ran into trouble installing therubyracer on Ruby 1.8. The installation failed with *** extconf.rb failed *** Could not create Makefile...

stackoverflow.com

You're better off using debugger-ruby_core_source: gem install debugger-ruby_core_source If you can't do...

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

So you're switching to PostgreSQL from MySQL? Here is some help... General hints on PostgreSQL \? opens the command overview...

makandra dev

The mysql2 gem in version 0.3.13 might break while compiling on older patch releases of Ruby 1.9.3 within rvm:

Do not use .rvmrc files to specify Ruby version and gemset configuration any longer, it's deprecated and not considered...

After running bundler / gem install I could not load nokogiri lately. It died with cannot load such file -- nokogiri/nokogiri.

Ruby's private keyword might do a lot less than you think. "private" does not apply to class methods defined...