This project is archived and is in readonly mode.

#2409 ✓ invalid
Sam Ruby

activerecord double escapes error_messages_for

Reported by Sam Ruby | April 3rd, 2009 @ 03:30 PM | in 3.0.2


<%= error_messages_for 'order' %>

Double escapes messages. Example from Agile Web Development on Rails, third edition, page 200:


es:
  activerecord:
    attributes:
      order:
        address: "Direcci&oacute;n"
    errors:
      messages:
        inclusion: "no est&aacute; incluido en la lista"

Full es.yml.

The output produced includes:


    * Direccx&oacute;n no puede quedar en blanco
    * Forma de pago no est&aacute; incluido en la lista

Note: this worked in Rails 2.2, and continues to work as expected in Rails 2.3 for selection boxes and labels.

The full makedepot.rb is available if it helps to reproduce the problem.

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 »

Tickets have moved to Github

The new ticket tracker is available at https://github.com/rails/rails/issues

Shared Ticket Bins

Pages