Forum: Ruby on Rails is f.submit in a form_for newer than submit_tag?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
winter h. (Guest)
on 2009-05-25 01:06
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?
Franco C. (Guest)
on 2009-05-25 02:54
(Received via mailing list)
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-
This topic is locked and can not be replied to.