I have a comment controller with an index and create actions among others. Both of these actions correspond to the html and js formats.
Whenever I get a create request via ajax, I would like to add a new comment and then redirect to index.js, so the comments on the screen are updated without reloading the page.
A similar thing works in Chrome. But whenever I try to do this in Firefox or IE, it turns out that the redirect from create.js gets into index.html ...
Even when I force js redirect:
redirect_to polymorphic_path([@commentable, :comments]), :format => 'js'
It gets into the .html format in Firefox and IE.
Any idea what could be happening here?