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:

        address: "Direcci&oacute;n"
        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 »

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

The new ticket tracker is available at <a href=""></a>

Shared Ticket Bins