On Domingo, 7 de Noviembre de 2010 19:35:39 Soren Christensen escribió: > Hi, > > I have a set of relations where I use a conditions_for_collections to > control what is happening. > > When I create a new item through the nested relation I get all of the items > in the nested model, and not the ones filtered through the > conditions_through_collection. > > Do I need to move by filter into the actual model association as a > :condition there, or is there an AS structure that I should use instead ?
I suppose you are talking about :select form_ui, you will have to set the conditions in a helper method (in the controller's helper module) named options_for_association_conditions -- 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.
