Topic: How to?: "this long string" to "this long..."
Is there a simple way to limit the length of the string and have RoR add the ellipsis where necessary (ie: not cut words in half, but add it at the end of a word)?
If not a built in function, how would one go about creating this functionality?
I found something similar but don't want it to end the string with last words.. simply want the three dots and not sure how to change the code
Last edited by dimitry (2007-06-11 02:01:57)