This project is archived and is in readonly mode.
InstanceTag#to_label_tag should use human_attribute_name
Reported by Pascal Ehlert | December 10th, 2008 @ 01:22 PM | in 2.x
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.
Comments and changes to this ticket
-
Niels Ganser January 16th, 2009 @ 05:38 PM
+1 on this
Did you ever finish your patch, Pascal? Otherwise I will have a go at it..
-
Niels Ganser January 16th, 2009 @ 07:28 PM
So it looks like this duplicates #745. Also see http://i18n.lighthouseapp.com/pr...
-
Pascal Ehlert January 18th, 2009 @ 12:14 PM
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.
-
Pratik January 18th, 2009 @ 09:48 PM
- State changed from new to duplicate
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>