On Rails, is f.submit in form_for newer than submit_tag?

some books or even rails api uses

form_for ...
  ...
  submit_tag ...
end

      

and I found that Rails 2.3.2 Scaffold uses

f.submit "Create"

      

instead ... and it's not in the rails api doc. Is this a new addition and is it supposed to replace submit_tag?

+1


a source to share


1 answer


I believe it f.submit

is calling a method submit_tag

under the hood.



This is in the context of the "f" form.

+2


a source







All Articles