# How to specify the response format in an asynchronous post act

**URL:** <https://www.ruby-forum.com/t/how-to-specify-the-response-format-in-an-asynchronous-post-act/145160>\
**Category:** Rails\
**Created:** [August 6, 2008, 4:22pm UTC](https://www.ruby-forum.com/t/how-to-specify-the-response-format-in-an-asynchronous-post-act/145160 "2008-08-06T16:22:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vince](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b5e925/32.png) [@vince](https://www.ruby-forum.com/u/vince)\
**Post date:** [August 6, 2008, 4:22pm UTC](https://www.ruby-forum.com/t/how-to-specify-the-response-format-in-an-asynchronous-post-act/145160/1 "2008-08-06T16:22:47Z")

</div>

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?
