Skip to content

Instantly share code, notes, and snippets.

@robheittman
Created January 13, 2012 02:59
Show Gist options
  • Save robheittman/1604354 to your computer and use it in GitHub Desktop.
Save robheittman/1604354 to your computer and use it in GitHub Desktop.
Tell Rack about your static file types, too
# 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