SQLite3 for OSX and Rails

I ran into some problems using SQLite 3 and Rails on my OSX box the other day. The problems are easily fixed by upgrading SQLite to version 3.3.9. The following blog posts were all invaluable in saving me a load of time and hassle: