Articles tagged with: gems
Ruby »
There are plenty of times when I want to grab either one or many random records from a database in Rails. For instance, one random user, one random post, 5 random items, etc. Honestly, it’s one of those things I do in nearly every app I’ve written, so a while ago I created a module to add to any ActiveRecord class that gave me one() and some() methods. This way, I can just include Randomizer and have the methods. Everyone probably already has their method– I actually got this from …
Ruby »
I’ve been getting really grumpy lately because strange things keep happening when I try to build Ruby apps– specifically on Rails. It turns out that some of my problems weren’t due to my horrible lack of competence, but instead to the fact that the Ruby installation on Snow Leopard (installed from Xtools) had some weird things going on with regards to Gems. I thought I’d throw it up here because I tend to have problems more than once, and my blogs are as much a pensieve as they are anything.
So, …


