You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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):
<textareaname="Description"></textarea><textareaname="Description">
Simple Description
</textarea><textareaname="Description">
Complex Description
With Spaces and all the things :)
</textarea><textareaname="Description">
Value Description
</textarea>