title: Maximum length on a textarea in Ruby on Rails
body: <p>I tried applying the <code>:maxlenght</code> => 40 on a <a href="http://www.w3schools.com/TAGS/tag_textarea.asp" rel="noreferrer">textarea</a> on my form.
  But it didn't work out.
  Can we have a length limit on a textarea?</p>
  
  <p>The code for text area is</p>
  
  <pre><code>&lt;%= f.text_area :data,
                  :rows =&gt; 2,
                  :cols =&gt; 60 ,
                  :maxlength =&gt; 140,
                  :autocomplete =&gt; :off,
                  :class =&gt; "textareabytes" %&gt;
  </code></pre>