Pluralize method

Hi,

The pluralize method does not seem to be working correctly.
pluralize(count, “Due Today”)

gives me the following output:
2 Due Todays
1 Due Tomorrows
0 Past Dues
0 Due End of Weeks

It should have been:
2 Due Today
1 Due Tomorrow
0 Past Due
0 Due End of Week

Regards,
Pratik

2 Due Today
1 Due Tomorrow
0 Past Due
0 Due End of Week

It’s working. You just found an example where it doesn’t make sense
for your application. The plural of “week” is “weeks”, etc…

It doesn’t seem to me like you want to pluralize it… just print it
out with your label after it… ???

This one may actually make thedailywtf…

Given your desired output, why on earth are you calling pluralize?

Oh! am sorry, its so insane of me :slight_smile:

@Ar Chron exactly my thoughts, couldn’t have been put better :D.
Thanks & Regards,
Dhruva S…

Charles de
Gaullehttp://www.brainyquote.com/quotes/authors/c/charles_de_gaulle.html

  • “The better I get to know men, the more I find myself loving dogs.”

On Tue, Aug 25, 2009 at 8:31 AM, Ar Chron

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs