Hi
I have a model that has self referencing has many though associations
as defined in
http://blog.hasmanythrough.com/2007/10/30/self-referential-has-many-through
Essentially you have two associations of the same model class "Hunt"
for "preys" and "escapes". I have a single AS controller for the Hunt
model as HuntsController. My AnimalsControler has nested links added
for both ":preys" and ":escapes".
When the nesred links are displayed the name of each lis is determined
by the config.label of the HuntsController, that means they are the
same and is is non obvious to a user which list is which.
Assuming the confign was this:
config.nested.add_link("Links", [::preys, :escapes])
When the "Links" nested link is slected the HuntsController is
displays once for each association with the HuntsController label as
defined in the config.label.
Is there a way to dynamically set the name of the controller label
depending on which association is listed in the context of the
controller ?
For nested lists I'd expect the list label to be derived of the parent
column ?
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
-~----------~----~----~----~------~----~------~--~---