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?
:maxlenght
The code for text are
Not strictly what you're after of course, but, you can always put a:
validates_length_of :data, max: 40
on your model. Won't stop the textarea size of course :)