From: Rupert Voelcker Date: 2008-12-03T02:14:35+09:00 Subject: Re: Substring with "..." 2008/12/2 Jose Antonio Parra : > Hi! > > I want to know what is the method to take a string and return a > substring with 20 characters and "..." if the length of the string is > greater, or the complete string if it's shorter than 20 characters. > Thanks all. It's not actually part of the ruby api - it's a rails function in ActionView::Helpers::TextHelper - truncate(text, *args) Rupert