Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.
This project is archived and is in readonly mode.
Hello!
I try to modify 'truncate' helper to truncate string on last space character before specified length (default 30)
Example:
truncate("This is a string that will go longer then the default truncate length of 30", :omission => "[...]")
will return "This is a string that [...]" instead "This is a string that wil[...]"
Reported by seban · November 18th, 2008 @ 09:22 PM
This is expected behaviour really. You should just define a custom helper method if you want a different behaviour.
Thanks !
March 7th, 2009 @ 03:42 PM