# HTML Button to call RESTful URL?

**URL:** <https://www.ruby-forum.com/t/html-button-to-call-restful-url/177909>\
**Category:** Rails\
**Created:** [October 26, 2009, 4:33pm UTC](https://www.ruby-forum.com/t/html-button-to-call-restful-url/177909 "2009-10-26T16:33:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RVince](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/4491bb/32.png) [@RVince](https://www.ruby-forum.com/u/RVince)\
**Post date:** [October 26, 2009, 4:33pm UTC](https://www.ruby-forum.com/t/html-button-to-call-restful-url/177909/1 "2009-10-26T16:33:00Z")

</div>

How can I amend a button on my form that looks like:

To invoke a method

def leads  
…  
end

in my ChannelsController ? Thanks, Rvince

---

<div class="post-metadata">

**Author:** ![RVince](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/4491bb/32.png) [@RVince](https://www.ruby-forum.com/u/RVince)\
**Post date:** [October 26, 2009, 7:50pm UTC](https://www.ruby-forum.com/t/html-button-to-call-restful-url/177909/2 "2009-10-26T19:50:42Z")

</div>

RVince wrote:

> How can I amend a button on my form that looks like:
> 
> To invoke a method
> 
> def leads  
> …  
> end

[http://www.railsbrain.com/api/rails-2.3.2/doc/index.html?a=M002468&name=button\_to\_remote](http://www.railsbrain.com/api/rails-2.3.2/doc/index.html?a=M002468&name=button_to_remote)
