#823 ✓resolved
Matt Jones

Count tag doesn't i18n cleanly

Reported by Matt Jones | October 5th, 2010 @ 01:43 AM | in Hobo 1.3 (Rails 3)

The count tag doesn't i18n cleanly in either the 1-0-stable or Rails3 branches; the problem is that it's calling the lookup on the wrong class:

this.member_class.view_hints.field_name(attr)

In a typical count tag (<count:some_objects />) 'this' is the AssociationProxy, so the above will end up trying to find a key of some_objects.some_objects - one presumes that the key should probably be looked up in the parent object's class rather than the class of the array elements.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Referenced by

Pages