I have a text_area inside a fields_for, which is inside a form_for.
<%= day_form.text_area :hatch %> Is it possible to change the size of the text_area? For example: day_form.text_area size: 5.
You could either go with:
<%= day_form.text_area :hatch, cols: 30, rows: 10 %> or you can specify both with the size attribute:
<%= day_form.text_area :hatch, size: "30x10" %>
For responsiveness I like to make the text area width 100% :
<%= f.text_area :description, rows: 10, style: 'width:100%;' %>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With