# Button to remote

**URL:** <https://www.ruby-forum.com/t/button-to-remote/107406>\
**Category:** Rails\
**Created:** [June 21, 2007, 1:36pm UTC](https://www.ruby-forum.com/t/button-to-remote/107406 "2007-06-21T13:36:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![huang\_zhimin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/54ee81/32.png) [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Post date:** [June 21, 2007, 1:36pm UTC](https://www.ruby-forum.com/t/button-to-remote/107406/1 "2007-06-21T13:36:02Z")

</div>

Is there a tag that is a button but acts as link\_to\_remote?

–

> **[CodeLineStatistics](https://sourceforge.net/projects/mycodeline/)**
>
> Download CodeLineStatistics for free. The code line statistics takes files and directories from GUI, counts the total files, total sizes of files, total lines, lines of codes, lines of comments and lines of blanks in the files, displays the results...

---

<div class="post-metadata">

**Author:** ![huang\_zhimin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/54ee81/32.png) [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Post date:** [June 21, 2007, 1:55pm UTC](https://www.ruby-forum.com/t/button-to-remote/107406/2 "2007-06-21T13:55:06Z")

</div>

On 6/21/07, huang zhimin [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Is there a tag that is a button but acts as link\_to\_remote?
> 
> Check out submit\_to\_remote:  
> [Peak Obsession](http://api.rubyonrails.com/classes/ActionView/Helpers/PrototypeHelper.html#M000532)

Grtz Gert

---

<div class="post-metadata">

**Author:** ![huang\_zhimin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/54ee81/32.png) [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Post date:** [June 21, 2007, 2:24pm UTC](https://www.ruby-forum.com/t/button-to-remote/107406/3 "2007-06-21T14:24:11Z")

</div>

It seems that submit\_to\_remote should be appear only in a form.  
But I like to put the buttons anywhere.

On 6/21/07, Gert G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> >

–

> **[CodeLineStatistics](https://sourceforge.net/projects/mycodeline/)**
>
> Download CodeLineStatistics for free. The code line statistics takes files and directories from GUI, counts the total files, total sizes of files, total lines, lines of codes, lines of comments and lines of blanks in the files, displays the results...

---

<div class="post-metadata">

**Author:** ![huang\_zhimin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/54ee81/32.png) [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Post date:** [June 21, 2007, 2:57pm UTC](https://www.ruby-forum.com/t/button-to-remote/107406/4 "2007-06-21T14:57:15Z")

</div>

On Jun 21, 7:35 am, “huang zhimin” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Is there a tag that is a button but acts as link\_to\_remote?

I didn’t see an exact solution for your problem in the docs, but you  
could start with button\_to\_function[1]

1:  
[http://api.rubyonrails.org/classes/ActionView/Helpers/JavaScriptHelper.html#M000631](http://api.rubyonrails.org/classes/ActionView/Helpers/JavaScriptHelper.html#M000631)
