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.

InstanceTag#to_label_tag should use human_attribute_name

#1546

Instead of using method_name.humanize which used to be the preferred way of doing this in the pre-I18n era, #to_label_tag should now use ActiveRecord::Base#human_attribute_name to retrieve it's default caption.

I will come up with a patch later this day, this is just a note to myself.

Reported by Pascal Ehlert · December 10th, 2008 @ 01:22 PM

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

Activity

  1. Niels Ganser
    Niels Ganser

    +1 on this

    Did you ever finish your patch, Pascal? Otherwise I will have a go at it..

    January 16th, 2009 @ 05:38 PM

  2. Niels Ganser
  3. Pascal Ehlert
    Pascal Ehlert

    Exactly, I found that ticket in the i18n project hours after I created this one, this is why I haven't done the patch (and because I was unsure about the testing of it).

    Unfortunately I can't close this ticket or mark it as a duplicate, maybe someone else could?

    Thanks.

    January 18th, 2009 @ 12:14 PM

  4. Pratik
    Pratik
    • State changed from new to duplicate

    January 18th, 2009 @ 09:48 PM

  5. bingbing