MettaProgramming

Thoughts on Software and Technology

Archive for the ‘gems’ tag

Quick, “random records” module

leave a comment

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

Written by john

June 23rd, 2010 at 4:46 pm

Posted in Ruby

Tagged with , , , ,

Ruby Gems and Snow Leopard

leave a comment

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

Written by john

February 1st, 2010 at 11:29 am

Posted in Ruby

Tagged with ,