This project is archived and is in readonly mode.
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
-
José Valim April 2nd, 2009 @ 10:33 PM
- Tag changed from actionview, bug, error_messages_for, i18n to actionview, bug, error_messages_for, i18n, verified
-
Repository April 5th, 2009 @ 10:45 AM
- State changed from new to committed
(from [1ab7c37671d7c0cd9d8698bd462916a7e6f95470]) Object names with underscore do the wrong lookup in I18n on error_messages_for.
Signed-off-by: Michael Koziarski michael@koziarski.com [#2390 state:committed] http://github.com/rails/rails/co...
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>
People watching this ticket
Attachments
Referenced by
- 2390 Object names with underscore do the wrong lookup in I18n on error_messages_for Signed-off-by: Michael Koziarski michael@koziarski.com [#...