This project is archived and is in readonly mode.

#2390 ✓committed
José Valim

Object names with underscore do the wrong lookup in I18n on error_messages_for

Reported by José Valim | April 1st, 2009 @ 10:30 AM | in 2.x

If I have an object name like "book_seller." On error_messages_for it will search for "book seller" instead of "book_seller".

A quick solution is two maintain both on I18n files:

activerecord:

models:
  book_seller "Book seller"
  book seller: "Book seller"

This patch fix that (tests added).

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>

Attachments

Referenced by

Pages