Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ctcherry/138350 to your computer and use it in GitHub Desktop.
Save ctcherry/138350 to your computer and use it in GitHub Desktop.
# application_controller.rb
before_filter :hijack_ie_default_format
def hijack_ie_default_format
if request.user_agent =~ /MSIE/ and params['format'].nil?
params['format'] = 'html'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment