This project is archived and is in readonly mode.

#6057 ✓wontfix
Christopher Thompson

'Address' does not singularize properly

Reported by Christopher Thompson | November 24th, 2010 @ 05:25 PM

Using Rails 2.3.5 or Rails 3.0.3, testing in irb:

'Address'.singularize
=> "Addres"

However, the following works:

'Address'.pluralize.singularize
=> "Address"

Note that this also means that 'Address'.classify fails, while 'Address'.pluralize.classify will work properly.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Referenced by

Pages