When submitting an attachment, the next page is blank.
this is because the client doesn't say that it will accept javascript as a response.
Here is a work around
$(function() {
$.ajaxSetup({
'beforeSend': function(xhr) {
xhr.setRequestHeader("Accept", "text/javascript");
}
});
});
See if this issue goes away in Rails 3.1
rails/jquery-ujs#52
When submitting an attachment, the next page is blank.
this is because the client doesn't say that it will accept javascript as a response.
Here is a work around
$(function() {
$.ajaxSetup({
'beforeSend': function(xhr) {
xhr.setRequestHeader("Accept", "text/javascript");
}
});
});
See if this issue goes away in Rails 3.1
rails/jquery-ujs#52