On Miércoles, 27 de Octubre de 2010 02:46:31 Andrey Voronkov escribió:
> I have these models: Event ---< FinancingPeriod. And for financing
> periods there is nested link.
> 
> I'd like to use create_autorized? method in FinancingPeriodsController
> based on current event. Is there any way to get current Event instance
> in FinancingPeriodsController.

Yes, you can get it in active_scaffold_constraints hash, if association is 
event:
active_scaffold_constraints[:event]


-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 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