Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

FormHelper#label ignores translated attributes

#2131

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"

Reported by iGEL · March 4th, 2009 @ 09:49 PM

State: duplicate
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Niels Ganser
  2. iGEL
    iGEL

    You are right. Sorry for the duplicate.

    March 6th, 2009 @ 08:31 PM

  3. CancelProfileIsBroken
    CancelProfileIsBroken
    • State changed from new to duplicate

    August 5th, 2009 @ 02:34 PM