-
-
Notifications
You must be signed in to change notification settings - Fork 72
TextAreaTag
Antonio Pagano edited this page Mar 14, 2018
·
1 revision
TextAreaTag allows to generate <textarea> tags, it can be used with form and form_for, as usual it receives a set of options to setup this textarea field.
TextAreaTag can be user with form
and form_for
, with form:
<%= f.TextAreaTag({}) %>
<%= f.TextAreaTag({"name": "Description"}) %>
<%= f.TextAreaTag({"name": "Description", "value": "Simple Description"}) %>
<%= f.TextAreaTag({"name": "Description"}){ %>
Complex Description
With Spaces and all the things :)
<%= } %>
<%= f.TextAreaTag({"name": "Description", "value": "Value Description"}){ %>
Complex Description
With Spaces and all the things :)
<%= } %>
Produces (respectively):
<textarea name="Description"></textarea>
<textarea name="Description">
Simple Description
</textarea>
<textarea name="Description">
Complex Description
With Spaces and all the things :)
</textarea>
<textarea name="Description">
Value Description
</textarea>