The Pluralizer
(Rails 1.2.3)

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

Permalink: /tools/pluralize/TestConfigDatum

Method Result Example
camelize TestConfigDatum Class or Model name
classify TestConfigDatum
demodulize TestConfigDatum
foreign_key test_config_datum_id A table field for belongs_to
humanize Testconfigdatum Column names in a scaffolded view
pluralize TestConfigData
singularize TestConfigDatum
tableize test_config_data A database table
titleize Test Config Datum
underscore test_config_datum 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)