This project is archived and is in readonly mode.

#1409 ✓invalid


Reported by seban | November 18th, 2008 @ 09:22 PM | in 2.x


I try to modify 'truncate' helper to truncate string on last space character before specified length (default 30)


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[...]"

Comments and changes to this ticket

  • Pratik

    Pratik March 7th, 2009 @ 03:42 PM

    • Assigned user set to “Pratik”
    • Tag changed from texthelper, text_helper to patch, texthelper, text_helper
    • State changed from “new” to “invalid”

    This is expected behaviour really. You should just define a custom helper method if you want a different behaviour.

    Thanks !

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket