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 Development with Rails book, and no mention of f.submit either.

Is there anywhere else I should be looking?

Thanks in advance, f

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

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

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