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
-
Domizio Demichelis October 5th, 2010 @ 02:55 AM
- State changed from new to open
- Milestone set to Hobo 1.3 (Rails 3)
- Assigned user set to Domizio Demichelis
- Milestone order changed from 197906 to 0
-
Tom Locke October 5th, 2010 @ 02:58 AM
- State changed from open to resolved
(from [11e509da75149b4177f2839ca013bad68b858575]) fixed wrong i18n lookup for association count [#823 state:resolved] http://github.com/tablatom/hobo/commit/11e509da75149b4177f2839ca013...
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.
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
- 823 Count tag doesn't i18n cleanly (from [11e509da75149b4177f2839ca013bad68b858575]) fixed w...