I am confused by the number of different modules that are related to the mime types in Rails. There are three that I mean, if someone can fix this for me, I would be grateful.
1) Mime :: Type (for reply_to)
Mime::Type.register "text/richtext", :rtf
2) MIME :: Types (from mime-type gemstone)
MIME::Types[/ogg/, :complete => true]
3) Rack :: Mime :: MIME_TYPES (for serving content)
Rack::Mime::MIME_TYPES.merge!({".ogg" => "audio/ogg"})
Are these three completely separated or is there any connection between them? It seems strange to maintain 3 different lists of mime types, but their goals seem to be disjoint, I think.
In particular, how do you know which ones register a new type with <
Thanks!
source share