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
need.so 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?