# \[Rails 3\] remote\_function?

**URL:** <https://www.ruby-forum.com/t/rails-3-remote-function/193460>\
**Category:** Rails\
**Created:** [August 18, 2010, 4:28am UTC](https://www.ruby-forum.com/t/rails-3-remote-function/193460 "2010-08-18T04:28:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [August 18, 2010, 4:28am UTC](https://www.ruby-forum.com/t/rails-3-remote-function/193460/1 "2010-08-18T04:28:52Z")

</div>

Is the remote\_function still valid in Rails 3 as it seems many of the  
Prototype helpers have been replaced ? (link\_to\_remote, …)

where can I find any link on it ? not in the standard doc I guess …

thanks for you feedback

---

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [August 18, 2010, 6:21am UTC](https://www.ruby-forum.com/t/rails-3-remote-function/193460/2 "2010-08-18T06:21:15Z")

</div>

On Tue, Aug 17, 2010 at 9:27 PM, Erwin [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Is the remote\_function still valid in Rails 3 as it seems many of the  
> Prototype helpers have been replaced ? (link\_to\_remote, …)
> 
> where can I find any link on it ? not in the standard doc I guess …

\<%= link\_to ‘foo’, some\_path, :remote =\> true %\>

The docs are on your system. Run `gem server` and then browse to  
[http://localhost:8808/](http://localhost:8808/)

–  
Greg D.  
[destiney.com](http://destiney.com) | [gregdonald.com](http://gregdonald.com)

---

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [August 18, 2010, 10:47am UTC](https://www.ruby-forum.com/t/rails-3-remote-function/193460/3 "2010-08-18T10:47:34Z")

</div>

Thanks Greg

I’ve already look at it.  
My issue was related to the remote\_function which seems to be still  
available…  
All that stuff in Rails 3 is not yet so clear for me…

I am using this on a checkbox tag, not on a tag (which is  
well documented in the doc)

= check\_box\_tag(“selection”, “1”, false, :onclick =\>  
remote\_function(:url =\> showHideMenuItem\_admin\_user\_path, :method  
=\> :post, :with =\> “‘id=#{user.id}’”))

I finally ended testing the ‘old’ remote\_function and it’s working

erwin
