# Remote function and returning value

**URL:** <https://www.ruby-forum.com/t/remote-function-and-returning-value/196525>\
**Category:** Rails\
**Created:** [November 22, 2007, 11:47pm UTC](https://www.ruby-forum.com/t/remote-function-and-returning-value/196525 "2007-11-22T23:47:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sgudibanda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a9adbd/32.png) [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Post date:** [November 22, 2007, 11:47pm UTC](https://www.ruby-forum.com/t/remote-function-and-returning-value/196525/1 "2007-11-22T23:47:08Z")

</div>

Hi,

I am making a call to remote\_function, which updates a variable that I  
need to use in my current view. Call is happening, but the variable is  
not getting updated?

PS: And to avoid missing template error , in my remote function I am  
doing this: render :nothing =\> true, :layout =\> false.

Please Suggest.  
Regards,  
Sandeep G
