Uninitialized Constant User::Playlist

I ran into a problem in Rails today where I was getting a pretty vague ‘uninitialized constant User::Playlist’ error. It was happening when my user#show was being called in the user controller. I started digging around and finally realized it was an issue within my playlist model. I had an old gem being initialized(?) within the playlist model, but didn’t have the gem installed. The offending code was has_paper_trail. Everything worked fine once I removed that from the Playlist model.

Ember.js Authentication


Getting Command-T Working In Yosemite

I just updated to Yosemite, and one of the issues I ran into was using the command-t plugin for Vim. I ran into an error similar to:

Vim: Caught deadly signal SEGV

My solution was to remove the command-t plugin from /bundle, clone the plugin into /bundle, cd into cd ~/.vim/bundle/command-t/ruby/command-t, and run ruby extconf.rb make.

The trick was removing to completely remove the plugin in the first place.