I thought there was a Rails helper for that. I have the same code over in the drink model and when I asked you about it at the hackathon you didn't know.