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.
-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.
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:
-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.