Forum: Ruby on Rails Mime::Type.register documentation needs example

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Sudhir (Guest)
on 2009-04-14 20:38
(Received via mailing list)
# $RAILS_ROOT/config/mime_types.rb
Mime::Type.register "image/jpg", :jpg, ["image/jpeg", "image/pjpeg"]

Above example uses mime type synonyms. Each synonym is a alternative
string used to identify the same mime type and appears as an array
after the mime type symbol.

The class document does not explain the meaning of mime_type_synonyms
nor give an example. Someone should fix that.

Hope this post clarifies use of mime type synonyms.
This topic is locked and can not be replied to.