Conditional pluralize without the number

Perhaps this helps:

http://api.rubyonrails.org/classes/Inflector.html#M001076

Kind of strange, though. The Sting::Inflections simply do a Inflection.pluralize(word), and that method seems to return the word only (the method I'm talking about is the one in the link above). Weird.

You'll need to use to_sentence to make a custom helper, in application_helper.rb:

def friends_list_to_sentence(friends)   if friends.to_a.count == 1     friends + " is your friend."   else     friends.to_sentence + " are your friends."   end end

That's quick and dirty and I didn't test it.