# Is f.submit in a form\_for newer than submit\_tag?

**URL:** <https://www.ruby-forum.com/t/is-f-submit-in-a-form-for-newer-than-submit-tag/168716>\
**Category:** Rails\
**Created:** [May 24, 2009, 11:06pm UTC](https://www.ruby-forum.com/t/is-f-submit-in-a-form-for-newer-than-submit-tag/168716 "2009-05-24T23:06:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![winterheat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7993a0/32.png) [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Post date:** [May 24, 2009, 11:06pm UTC](https://www.ruby-forum.com/t/is-f-submit-in-a-form-for-newer-than-submit-tag/168716/1 "2009-05-24T23:06:04Z")

</div>

some books or even the rails api uses

form\_for …  
…  
submit\_tag …  
end

and i found that the Rails 2.3.2 Scaffold uses

f.submit “Go”

instead… and this is not in the rails api doc. Is this a new  
addition and is it suppose to replace submit\_tag?

---

<div class="post-metadata">

**Author:** ![winterheat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7993a0/32.png) [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Post date:** [May 25, 2009, 12:54am UTC](https://www.ruby-forum.com/t/is-f-submit-in-a-form-for-newer-than-submit-tag/168716/2 "2009-05-25T00:54:14Z")

</div>

All the method in the form helper have his “object implicit”  
counterpart, for example you can call text\_field(object\_name, method,  
options = {}) or f.text\_field(method, options = {}) and the object  
used is f.object (the parameter of form\_for @something), they produce  
exactly the same output.

Regards.

Franco C…

On May 24, 6:06 pm, SpringFlowers AutumnMoon \<rails-mailing-
