Tip: Avoid IE Issues with Rails’ respond_to

For some reason, Internet Explorer (all versions) will always get the first format block you specify. So, if you’re doing something simple with respond_to in Rails, like, say, delivering an RSS feed if the URL contains .rss, IE won’t respect the format.html block unless you put it first. This can yield very strange results, like IE prompting the user to download a file when they hit your site.