The Pluralizer
(Rails 2)

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

Permalink: /tools/pluralize/status

Method Result Example
camelize Status Class or Model name
classify Statu
demodulize status
foreign_key status_id A table field for belongs_to
humanize Status Column names in a scaffolded view
pluralize statuses
singularize statu
tableize statuses A database table
titleize Status
underscore status 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)