Skip to content
On this page

Textarea ​

The textarea field renders a <textarea /> element.

ruby
field :body, as: :textarea

Options ​

rows

Set the number of rows visible in the Edit and New views.

ruby
field :body, as: :textarea, rows: 5

Default ​

5

Possible values ​

Any integer.