acts_as_sluggable

How can anyone not love Rails?

Many websites these days have nice descriptive URLs like /post/12/i-like-doggies. Apparently it helps in the Google ranks, although I am not convinced.

In the olden days you would probably write a custom script, add a database column, knit the two together and use a little mod_rewrite magic to hide it all from the user. Ugly, brittle, cumbersome. That’s why I never bothered.

enter rails.

Installed the plugin acts_as_sluggable. Made one change to my article model and WHAM! url slugs like a pro.

It doesn’t get any sweeter than this.