What action view method turns this: asdf asdf aslkj flkjasdfljf lkasdf asdlfkjsd flkajsdf ldkffljasf aslkfj asldfkjasdf nlfkajlskf lasdfkjaslfdj asl;fkaslf asdlfsalf Into this: asdf asdf aslkj flkjasdfljf lkasdf ... Thanks!
on 2007-05-21 06:43
on 2007-05-21 07:14
on 2007-05-21 12:21
On 5/21/07, Phlip <firstname.lastname@example.org> wrote: > > > Browsers do that these days: > > http://www.google.com/search?q=css+overflow+ellipses > > Wouldn't that only work on IE? Nathan
on 2007-05-21 14:43
truncate does this, but i does not split by word, only by No. of Characters: http://api.rubyonrails.org/classes/ActionView/Help... if you need it p split at word boundaries, have a look at this code snippet, you can use it as a custom Helper Method: http://snippets.dzone.com/posts/show/804
on 2007-05-21 19:37
Thanks for that snippit. I have been wanting to figure out how to do this and have been just too lazy to do it.