Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@karlbright
Created June 1, 2011 05:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karlbright/1001840 to your computer and use it in GitHub Desktop.
Save karlbright/1001840 to your computer and use it in GitHub Desktop.
Loading development environment (Rails 3.0.7)
>> "faxes".singularize
=> "fax"
>> "fax".pluralize
=> "faxes"
>> [1, 2, 3].each {|i| p helper.pluralize i, "fax" }
"1 fax"
"2 faxes"
"3 faxes"
=> [1, 2, 3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment