textarea

textarea(name = "", cols = 70, rows = 10)
Instance Public methods

Generate a TextArea element, as a String.

name is the name of the textarea. cols is the number of columns and rows is the number of rows in the display.

Alternatively, the attributes can be specified as a hash.

The body is provided by the passed-in no-argument block

textarea("name")
   # = textarea("NAME" => "name", "COLS" => 70, "ROWS" => 10)

textarea("name", 40, 5)
   # = textarea("NAME" => "name", "COLS" => 40, "ROWS" => 5)
doc_ruby_on_rails
2015-03-31 22:34:42
Comments
Leave a Comment

Please login to continue.