Archive for February, 2008

Depth Charge

Wednesday, February 27th, 2008

Over the past couple of days, I've run into two separate problems caused by gems being installed on one machine and not on another. Fool me once, right? So I spent a little time last night writing up a rough dependency-finder gem: Depth Charge. As of the 0.0.1 version, it gives ...

Default routing considered harmful

Monday, February 25th, 2008

(I always wanted to write one of those "considered harmful" posts) In case you haven't realized it yet, if you're writing a RESTful application in Rails 2, you should probably delete the default route at the bottom of your routes file: map.connect ':controller/:action/:id' The reason is that this provides a back-door into any ...

Note to self: favicons in Rails

Friday, February 22nd, 2008

Just so I can remember it later: adding a favicon to /public is not enough to get it to show up for a Rails application. You also need to update your layout(s) with the following: <link rel="shortcut icon" href="/favicon.ico" /> Hopefully this saves somebody else some time, too.

OpenID and standard authentication usability

Tuesday, February 19th, 2008

Maybe it's just me - I haven't implemented OpenID anywhere yet (it's on my list, I swear!), so I could just be missing something - but is there a fundamental problem in allowing a single user to log in with both OpenID and via standard authentication? Take Basecamp, for instance. I ...

The hardest day

Sunday, February 17th, 2008

(If you read this blog for the technical bits - or have a dog - you might want to skip over this post. It's one of those blogging-as-catharsis things that many people hate.) Yesterday was one of the hardest days I can ever remember having. Lacie and I had to make ...