Ruby on Rails is/are pluralisation

Viewed 4772

Is there a helper to avoid this sort of code?

= @leads.length == 1 ? 'is' : 'are'

I know about pluralize but it doesn't help in this case. I know that writing a helper would be trivial, I want to know if there's something in the Rails API that I have overlooked.

Thanks,

-Tim

4 Answers
Related