This project is archived and is in readonly mode.

#2131 ✓duplicate
iGEL

FormHelper#label ignores translated attributes

Reported by iGEL | March 4th, 2009 @ 09:49 PM | in 2.x

With the i18n support of rails, you may translate the attributes of a model like this:


en:
  activerecord:
    attributes:
      user:
        name: User name
        email: Email address

But if you use


form_for @user do |f|
  f.label :user
  f.text_field :user
end

rails will print out "User" instead of "User name"

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>

People watching this ticket

Pages