How do you determine the MIME type for a file?

What's the best way to determine the mime type of a file given it's
path?

use the mime_types gem

Adam