The Pluralizer
(Rails 1.2.3)

Confused by how Ruby on Rails pluralizes a word? Test it out here!

Permalink: /tools/pluralize/octopus

Method Result Example
camelize Octopus Class or Model name
classify Octopu
demodulize octopus
foreign_key octopus_id A table field for belongs_to
humanize Octopus Column names in a scaffolded view
pluralize octopi
singularize octopu
tableize octopi A database table
titleize Octopus
underscore octopus The file path for this class

Note: What you put in determines what comes out!
For example, 'tableize' only works for words without whitespace.

Nuby on Rails

Geoffrey Grosenbach / Ruby / Code / Graphics / Design / Rails / Merb / Javascript / CSS

Manufactured with

Subscribe

Subscribe (RSS)