This project is archived and is in readonly mode.

#342 ✓stale
Carsten Nielsen

Enhancements To ActionView::Helpers::TextHelper#pluralize

Reported by Carsten Nielsen | June 5th, 2008 @ 07:54 PM

Enhanced pluralize to allow for removal of count from output, also added the option to wrap the count in a content tag if desired.

Comments and changes to this ticket

  • RSL

    RSL September 6th, 2008 @ 07:29 PM

    • Tag set to enhancement, pluralize, text_helper

    This is a nice enhancement. I've had to write a method for this a few times.

  • Wesley Moxam

    Wesley Moxam September 6th, 2008 @ 07:29 PM

    +1

    Sometime you just want an easy way to get the plural form.

  • Claudio Poli
  • Andrew Selder

    Andrew Selder November 20th, 2008 @ 11:00 PM

    +1 Very nice. I'd also love to see the ability to have a use_delimiter options that would allow numbers to be delimited a la number_with_delimiter.

  • Yaroslav Markin

    Yaroslav Markin February 6th, 2009 @ 07:42 PM

    • Tag changed from enhancement, pluralize, text_helper to enhancement, patch, pluralize, text_helper

    +1

  • DHH

    DHH February 7th, 2009 @ 01:29 PM

    • State changed from “new” to “incomplete”

    I'd rather see that you could separate the pluralization from the output of the number. Then you can do whatever you want with either piece. Say you want a special tag around the pluralized word. Or you want to call number_with_delimiter on the number.

  • Rohit Arondekar

    Rohit Arondekar October 6th, 2010 @ 06:44 AM

    • State changed from “incomplete” to “stale”
    • Importance changed from “” to “”

    Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.

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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Pages