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

Posted by Jian Lin on Stack Overflow See other posts from Stack Overflow or by Jian Lin
Published on 2009-05-24T21:08:12Z Indexed on 2010/05/26 3:11 UTC
Read the original article Hit count: 224

Filed under:

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 "Create"

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

© Stack Overflow or respective owner

Related posts about ruby-on-rails