Created
January 13, 2012 02:59
-
-
Save robheittman/1604354 to your computer and use it in GitHub Desktop.
Tell Rack about your static file types, too
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Be sure to restart your server when you modify this file. | |
# Add new mime types for use in respond_to blocks: | |
# Mime::Type.register "text/richtext", :rtf | |
# Mime::Type.register_alias "text/html", :iphone | |
Mime::Type.register "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", :xlsx | |
# For now, the xlsx type is missing from Rack | |
Rack::Mime::MIME_TYPES.merge!({'.xlsx'=>'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment