Я выполняющий проект направляющих и я отображаю текстовое поле, которое может часто быть слишком длинно. Если там какие-либо вещи я могу звонить, чтобы только отобразить 20 слов или 120 символов на страница представления??
Возможно, вас заинтересует функция TextHelper truncate :
truncate("Once upon a time in a world far far away")
# => Once upon a time in a world f...
truncate("Once upon a time in a world far far away", :length => 14)
# => Once upon a...
truncate("And they found that many people were sleeping better.", :length => 25, "(clipped)")
# => And they found that many (clipped)
truncate("And they found that many people were sleeping better.", :omission => "... (continued)", :length => 15)
# => And they found... (continued)