field-list not using view hints on methods
Reported by Iain | July 8th, 2010 @ 02:37 AM
If you create a viewhint for a method on an object in one of your models (eg. count on a collection) then the viewhint is ignored by the <field-list> tag. By comparison the viewhint works correctly by the <table> tag.
I've created a proof of concept app to demonstrate the problem. In it there are two models: Bag and Marble, and a bag contains several marbles. On the bag index page there is a table with a column for "marbles.count", on the bag show page there is a field-list showing "marbles.count", and there is a viewhint for "marbles_count => "Number of Marbles"" in bag_hints.rb. The bag index page shows the viewhint correctly but the show page shows "count" instead of "Number of Marbles".
I think this is because one tag uses and the other uses <with-field-names>.
Comments and changes to this ticket
-
Matt Jones September 14th, 2011 @ 10:52 PM
- State changed from new to wontfix
This is gone now - use the i18n stuff.
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 ยป