Installing Nokogiri on El Capitan

EDIT: This post has been updated and retitled for El Capitan.   If you have attempted to install the Nokogiri gem and encountered errors similar to the output below… I feel your pain and have a solution. The Pain ➜ z gem install nokogiri Building native extensions. This could take a while… ERROR: Error installing nokogiri: […]

Migrating Data From MySQL to PostgreSQL

A Little Back Story… Migrating from MySQL to PostgreSQL is not as straight forward as it sounds.  As you may or may not know, MySQL’s ‘mysqldump’ utility comes with a “compatible” option where you can specific “postgresql” but the catch is this:  the resulting SQL is not properly escaped and will need it’s data types […]

How to Use the friendly_id gem w/ STI Models

To start off, the friendly_id gem allows your models to have “slugs” which ultimately help when you want your urls to appear more descriptive. For example instead of  you will get something like: . It’s better for SEO and IMO provides a better experience for situations where someone copies a link and sends […]

Woes of The Jeweler Gem & .gitconfig

I wanted to play around with creating my own gems so today I decided to try the jeweler gem. Install went fine: io@love:~$ sudo gem install jeweler Successfully installed jeweler-1.4.0 1 gem installed Installing ri documentation for jeweler-1.4.0… Installing RDoc documentation for jeweler-1.4.0… But when i attempted to create “the perfect gem” I ran into […]

Install Rmagick Gem on Ubuntu

A super easy, no fat, no carbs, anti-oxidant filled three lines that had Rmagick working immediately for me: sudo apt-get install imagemagick sudo apt-get install libmagick9-dev sudo gem install rmagick

Feedzirra and How I Installed It

I’m an Ubuntu user and wanted to give the Feedzirra gem a shot and play with some RSS feeds today but unfortunately I ran into a few problems — which were CAKE to fix thanks to apt-get and hopefully this post will save you some time!

Install Gems from GitHub

I’ve seen a few people confused by this, and I was stumped back in the day SO: FYI, if you want to install gems from GitHub you need to add it as a source! How? Easy! sudo gem sources -a Now you can install any gem hosted on GitHub with something like: sudo gem […]

libxslt Problems When Installing the Mechanize Gem

Ran into an interesting problem today that took me a bit to figure out. I need to automate some web tasks so of course I turned to Mechanize. When trying to install the gem on Ubuntu I ran into the following problem: io@crazo:~$ sudo gem install mechanize Building native extensions. This could take a while… […]