Archive for the 'rails' Category

Ruby on Rails: Get some random records

EDIT AGAIN: Much better.. To get a 'num_reqd' array of random objects, you can use something like this. named_scope :large, :conditions => ['image_file_name IS NOT ...

Simple Thinking Sphinx on Dreamhost

*** Please note - this will probably not work (at all) (for more than a day of light use) without Cron use. And isn't at ...

Rails / LAMP / Wordpress Setup Guide

I've had huge amounts of pain getting WordPress set up locally over the last few weeks on my old machine and when it struck again ...

It’s been quiet around here

I have six draft posts in the wings waiting to be pushed out, works in progress related to technologies I've been working with lately ...

Git Pro Tips!

Stumbled across this fella on Twitter today, noticed he worked at Slide (who make successful/annoying Facebook Apps). None the less (I joke) he writes a ...

Ruby Uninitialized Constant Error (Mental Note)

The reason I always get initialized constant errors occurring in Ruby is accidentally naming models the plural form of the database table name and not ...