Where can I read about f.submit?

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

On Sun, Mar 7, 2010 at 10:11 PM, Frank H. [email protected]
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

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/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

Cheers,

Andy

On 8 March 2010 06:11, Frank H. [email protected] 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs