How to specify the response format in an asynchronous post act

I do asynchronous request via remote_form_for,I expect it will update
partial content within current page, but it end up redirect to a new
page,I guess may be cause controller consider ’ format.html’ was I I want to try other reponse format.The problem is I don know
how to specify the response format in post act.

whether the approach is set ‘accpt’ in request Header? If it is,How?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs