El Monday 26 January 2009 13:49:11 Kumala escribió:
> I am using activescaffold and acts_as_versioned.
> I have 2 models: contract and contractversion. I have added a
> "Versions" link to my scaffold using:
> config.nested.add_link("Versions", [:contractversions])
>
> Unfortunately, when clicking on the "Versions" link in the contract
> model, it shows all contract versions, including the current contract
> values.
>
> How can I prevent the latest version from being shown?
You can put conditions for the find method defining a
conditions_for_collection method.
--
Sergio Cambra .:: entreCables S.L. ::.
Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---