#754 ✓wontfix
Iain

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 =&gt "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

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

Pages