On Jueves, 11 de Junio de 2009 01:13:27 Soren Christensen escribió:
> Hi,
>
> Is there a way to specify ActionLinks such that the ID parameter in them
> can be calculated, rather than just taken from the current records ID ?
>
> Lets say we have Users and Payments. The list view shows me all the
> payments in the system from all users. Next to each payments I would
> like two ActionLinks.
> The first one give me a statement of this users transactions - so it
> need to ID the user.
> The second one gives me a statement for the receiving account - so it
> needs the ID of the receiving account.
>
> Clearly I can write around this in the controller - it just leaves so
> much cleaner code if this could be done here.

You can override _list_actions.html.erb, and add them there

-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to