Use actionpack with Mime::Types for mime type parsing.