# Where can I read about f.submit?

**URL:** <https://www.ruby-forum.com/t/where-can-i-read-about-f-submit/184755>\
**Category:** Rails\
**Created:** [March 8, 2010, 7:11am UTC](https://www.ruby-forum.com/t/where-can-i-read-about-f-submit/184755 "2010-03-08T07:11:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![0ffh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/0/ea666f/32.png) [@0ffh](https://www.ruby-forum.com/u/0ffh)\
**Post date:** [March 8, 2010, 7:11am UTC](https://www.ruby-forum.com/t/where-can-i-read-about-f-submit/184755/1 "2010-03-08T07:11:27Z")

</div>

Hi,  
ror newbie here.

I guess this is more of a “how do I get information” question than  
anything.

The generator inserts f.submit statements in forms and I’m looking at  
the documentation for submit but can’t find it anywhere.  
I looked at:  
-ruby guides, only submit\_tag is mentioned  
-api.rubyonrails.org, ActionView::Helpers::FormHelper, also only  
mentions submit\_tag  
-the Agile Web D. with Rails book, and no mention of f.submit  
either.

Is there anywhere else I should be looking?

Thanks in advance,  
f

---

<div class="post-metadata">

**Author:** ![0ffh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/0/ea666f/32.png) [@0ffh](https://www.ruby-forum.com/u/0ffh)\
**Post date:** [March 8, 2010, 7:51am UTC](https://www.ruby-forum.com/t/where-can-i-read-about-f-submit/184755/2 "2010-03-08T07:51:15Z")

</div>

On Sun, Mar 7, 2010 at 10:11 PM, Frank H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> -api.rubyonrails.org, ActionView::Helpers::FormHelper, also only  
> mentions submit\_tag  
> -the Agile Web D. with Rails book, and no mention of f.submit  
> either.
> 
> Is there anywhere else I should be looking?

Hi, you can look in the form\_helper.rb which provides a bit more  
documentation.  
BTW, it’s a part of the ActionPack gem.

Good luck,

-Conrad

---

<div class="post-metadata">

**Author:** ![0ffh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/0/ea666f/32.png) [@0ffh](https://www.ruby-forum.com/u/0ffh)\
**Post date:** [March 8, 2010, 10:49am UTC](https://www.ruby-forum.com/t/where-can-i-read-about-f-submit/184755/3 "2010-03-08T10:49:47Z")

</div>

> It is a bit odd that f.submit is not explicitly documented in more  
> places. It is effectively the same as submit\_tag I think. Google for  
> rails form\_for “f.submit”  
> will throw up some useful hits.

What you really want to be googling for is FormBuilder as it’s the  
FormBuilder that has the submit method:

[http://apidock.com/rails/ActionView/Helpers/FormBuilder](http://apidock.com/rails/ActionView/Helpers/FormBuilder)  
[http://apidock.com/rails/ActionView/Helpers/FormBuilder/submit](http://apidock.com/rails/ActionView/Helpers/FormBuilder/submit)

There’s no documentation on those pages, but one of them points you to:

[http://code.alexreisner.com/articles/form-builders-in-rails.html](http://code.alexreisner.com/articles/form-builders-in-rails.html)

Cheers,

Andy

---

<div class="post-metadata">

**Author:** ![0ffh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/0/ea666f/32.png) [@0ffh](https://www.ruby-forum.com/u/0ffh)\
**Post date:** [March 8, 2010, 10:42am UTC](https://www.ruby-forum.com/t/where-can-i-read-about-f-submit/184755/4 "2010-03-08T10:42:11Z")

</div>

On 8 March 2010 06:11, Frank H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> -api.rubyonrails.org, ActionView::Helpers::FormHelper, also only  
> mentions submit\_tag  
> -the Agile Web D. with Rails book, and no mention of f.submit  
> either.

It is a bit odd that f.submit is not explicitly documented in more  
places. It is effectively the same as submit\_tag I think. Google for  
rails form\_for “f.submit”  
will throw up some useful hits.

Colin
