My Dog

Posted by Chris Blackburn Wed, 30 Jul 2008 01:39:00 GMT

Well, today I had to put down my dog. He had cancer and it was destroying him little by little. He even had a seizure a few days ago which was difficult. I will miss him and look forward to seeing him again soon.

Tags ,  | 1 comment | no trackbacks

Independence Day

Posted by Chris Blackburn Fri, 04 Jul 2008 18:23:00 GMT

Happy July 4th to every American out there!

no comments | no trackbacks

Hack to fix "undefined method" error when running rake on a gem not yet installed

Posted by Chris Blackburn Thu, 03 Jul 2008 21:15:00 GMT

Recently, while trying to install the ultrasphinx gem for one of our projects, I ran into this little bonus:

(in /Users/cblackburn/Source/ruby/bols)
These gems that this application depends on are missing:
 - ultrasphinx
Run "rake gems:install" to install them.
rake aborted!
undefined method `validates_email_address' for #<Class:0x1f577f0>
/Users/cblackburn/Source/ruby/bols/rakefile:11
(See full trace by running task with --trace)

As usual I won’t bore you with why it happens other than to say the loader doesn’t work properly in this instance. To hack around it find out which models are using the ‘undefined method’ and place the following inside the class definition, before using the method.

# Hack to fix "undefined method" error when running rake on a gem not yet installed
require File.join(RAILS_ROOT, 'config', 'initializers', 'custom_validations')

Comment if you need more help or if this is not clear.

Posted in  | Tags , , , , , , , ,  | no comments | no trackbacks