# Custom Form Buttons

**URL:** <https://www.ruby-forum.com/t/custom-form-buttons/58165>\
**Category:** Rails\
**Created:** [April 19, 2006, 6:55am UTC](https://www.ruby-forum.com/t/custom-form-buttons/58165 "2006-04-19T06:55:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![d6veteran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/94ad74/32.png) [@d6veteran](https://www.ruby-forum.com/u/d6veteran)\
**Post date:** [April 19, 2006, 6:55am UTC](https://www.ruby-forum.com/t/custom-form-buttons/58165/1 "2006-04-19T06:55:47Z")

</div>

Is there a way to deliver options for a custom form button to the submit  
function?

As in:

---

<div class="post-metadata">

**Author:** ![d6veteran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/94ad74/32.png) [@d6veteran](https://www.ruby-forum.com/u/d6veteran)\
**Post date:** [April 19, 2006, 11:39am UTC](https://www.ruby-forum.com/t/custom-form-buttons/58165/2 "2006-04-19T11:39:56Z")

</div>

Arch S. wrote:

> Is there a way to deliver options for a custom form button to the submit  
> function?
> 
> As in:

Best advice is to read the RDoc that comes with rails. It has lots of  
examples and is very easy to read. In case you do not know how to run  
it. Bring up your command prompt and enter:

gem\_server

This will start a webrick server session, now point your web browser to  
[http://0.0.0.0:8808](http://0.0.0.0:8808) (or [http://localhost:8808](http://localhost:8808)) this will now be shoing  
the RDoc for the gems you have on your system. If you look into the  
latest version of the actionpack (that contains the actionview) you will  
see a list of methods on the right.

The bit you are interested in is here:  
[http://localhost:8808/doc\_root/actionpack-1.12.0/rdoc/classes/ActionView/Helpers/UrlHelper.html#M001065](http://localhost:8808/doc_root/actionpack-1.12.0/rdoc/classes/ActionView/Helpers/UrlHelper.html#M001065)

Hope this helps.

By looking and understanding the RDocs you can save yourself some time  
and learn more about the way rails works.

I’m no expert but it has really helped me.

enjoy the rails…

---

<div class="post-metadata">

**Author:** ![d6veteran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/94ad74/32.png) [@d6veteran](https://www.ruby-forum.com/u/d6veteran)\
**Post date:** [April 19, 2006, 6:12pm UTC](https://www.ruby-forum.com/t/custom-form-buttons/58165/3 "2006-04-19T18:12:40Z")

</div>

James W. wrote:

> The bit you are interested in is here:  
> [http://localhost:8808/doc\_root/actionpack-1.12.0/rdoc/classes/ActionView/Helpers/UrlHelper.html#M001065](http://localhost:8808/doc_root/actionpack-1.12.0/rdoc/classes/ActionView/Helpers/UrlHelper.html#M001065)
> 
> Hope this helps.
> 
> By looking and understanding the RDocs you can save yourself some time  
> and learn more about the way rails works.
> 
> I’m no expert but it has really helped me.
> 
> enjoy the rails…

Ya I am using the docs. I find them confusing as it is hard to find  
what you want. For example I’ve been looking at the submit calls . . .  
I see now after looking at the UrlHelper page that I can pass in html  
options. However the problem is knowing which method you need to use.  
All the methods for form submission should be categorized as such on a  
single page.

---

<div class="post-metadata">

**Author:** ![d6veteran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/94ad74/32.png) [@d6veteran](https://www.ruby-forum.com/u/d6veteran)\
**Post date:** [April 19, 2006, 6:16pm UTC](https://www.ruby-forum.com/t/custom-form-buttons/58165/4 "2006-04-19T18:16:53Z")

</div>

Here’s a good example. I want to use an asynchronous call, using  
to\_remote, but there is no button\_to\_remote. So can I pass html options  
to any linking method?
