Here's my swiss-knife Rails helpers.