This project is archived and is in readonly mode.

#3629 ✓resolved
Daniel Lopes

weird behavior on error_messages_for

Reported by Daniel Lopes | December 29th, 2009 @ 07:53 PM | in 2.3.6

I'm not sure if it is a bug, but it causes a weird behavior.

In these lines
error_messages_for in Rails 2.3.5 the gsub call force you to have a locale file with models like that:

models:
  bank account:
    one: "conta"
    other: "contas"

Instead of

models:
  bank_account:
    one: "conta"
    other: "contas"

And when you call something like BankAccount.human_name it will returns "Bankaccount" instead of "conta".

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