Hi Group,
I think I've read every post regarding nesting and association counts,
but none have pointed me to a solution. I would like to show the
number of children via association in the label of a nested link.
Something like
config.nested.add_link("Children [" + self.child.count.to_s +
"]", :child)
only that works. I'm sure it's simple, but can't for the life of me
figure out where to put the method to calculate the child.count.
Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---