-
-
Notifications
You must be signed in to change notification settings - Fork 72
InputTag
Antonio Pagano edited this page Jan 29, 2018
·
2 revisions
Input tag allows to create inputs, which are the center of any form and something you have to do all the time when sending data to your server from a web page.
Input tag can be used with both form and form_for helpers, with form:
<%= f.InputTag({}) %>
Produces
<input type="text">
And with form_for:
//form_for case
<%= f.InputTag("Name", {}) %>
<input id="talk-Name" name="Name" type="text" value="" />
If no type is passed in the options default is set to be "text".