rails- display certian number of characters from a textfield

Posted by ChrisWesAllen on Stack Overflow See other posts from Stack Overflow or by ChrisWesAllen
Published on 2010-04-15T19:44:39Z Indexed on 2010/04/15 19:53 UTC
Read the original article Hit count: 294

Filed under:
|
|
|

I running a rails project and I am displaying a textfield that can often be too long. If there any things I can call to only display 20 words or 120 characters on the the view page ??

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby