Archive for December, 2010

coding tip#2: absurd mongrel redirect error

In Mongrel (through the latest 1.2 beta; have not tried Mongrel2), redirection and database migrations are broken when used with Rails 2.3.8-2.3.10. (The story may be different with Rails 3.) The solution is this wonderful little monkeypatch:
This may or may not also fix database migration errors; I’ll know when I try.

coding tip #1

Due to changes in jQuery 1.4.3, you can no longer call :defaults when loading your js in your Rails 2.3 templates and expect your app to work in Internet Explorer 8, if you are using both jQuery and Prototype. You need to call ‘prototype’ directly and load ‘application.js’ just once, after you’ve loaded every other library. This is the best practice anyway, but now it’s, uh, the required practice. (FU M$…for making me a better coder!? OH NOES I LOSE)
In other news, I have blocked facebook in HOSTS at work, as an experiment.