# { head: ok}?

**URL:** <https://www.ruby-forum.com/t/head-ok/169217>\
**Category:** Rails\
**Created:** [May 31, 2009, 10:55pm UTC](https://www.ruby-forum.com/t/head-ok/169217 "2009-05-31T22:55:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [May 31, 2009, 10:55pm UTC](https://www.ruby-forum.com/t/head-ok/169217/1 "2009-05-31T22:55:22Z")

</div>

I was looking at the advanced rails recipe for the errata. It has  
format.js { hedda: ok}. does this not send back a full response so  
you do not require an RJS file?

Also I see that the application helper has the remote\_function in it.  
Is this a better way to do a remote\_function than putting it in the  
view along with the ajax call? Does this circumvent the RJS call or  
does the { head: ok } do that?
