Sorry this page looks weird. It was automatically migrated from my old blog, which had a different layout and different CSS.

Note To Self: Beware Relative Paths

When loading my own Ruby sources into Rails in environment.rb, don’t do this:

require 'my_library'

Do this:

require File.join(File.dirname(__FILE__), '../lib/my_library')

Especially when using a cheap host that:

Andrew Stewart • 16 August 2007 • RailsDeploymentNotes To Self
You can reach me by email or on Twitter.