I tried applying the :maxlenght
=> 40 on a textarea on my form.
But it didn't work out.
Can we have a length limit on a textarea?
The code for text area is
<%= f.text_area :data,
:rows => 2,
:cols => 60 ,
:maxlength => 140,
:autocomplete => :off,
:class => "textareabytes" %>
maxlength
attribute fortextarea
since HTML5. Unfortunately, it is not supported in IE prior to 10. See MDN for full details. – Ragsdale