text_area(object_name, method, options = {})
Instance Public methods
Returns a textarea opening and closing tag set tailored for accessing a
specified attribute (identified by method) on an object
assigned to the template (identified by object). Additional
options on the input tag can be passed as a hash with options.
Examples
text_area(:post, :body, cols: 20, rows: 40)
# => <textarea cols="20" rows="40" id="post_body" name="post[body]">
# #{@post.body}
# </text