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.

Enhancements To ActionView::Helpers::TextHelper#pluralize

#342

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

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

State: stale
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. RSL
    RSL
    • Tag set to enhancement, pluralize, text_helper

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

    September 6th, 2008 @ 07:29 PM

  2. Wesley Moxam
    Wesley Moxam

    +1

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

    September 6th, 2008 @ 07:29 PM

  3. Claudio Poli
  4. Andrew Selder
    Andrew Selder

    +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.

    November 20th, 2008 @ 11:00 PM

  5. Yaroslav Markin
    Yaroslav Markin
    • Tag changed from enhancement, pluralize, text_helper to enhancement, patch, pluralize, text_helper

    +1

    February 6th, 2009 @ 07:42 PM

  6. DHH
    DHH
    • 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.

    February 7th, 2009 @ 01:29 PM

  7. Rohit Arondekar
    Rohit Arondekar
    • 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.

    October 6th, 2010 @ 06:44 AM