On Lunes, 14 de Noviembre de 2011 15:50:00 JB escribió: > I'm looking at the Custom Association Options > (options_for_association_conditions helper method). I have a class > that has a belongs_to association I want to limit the results for a > drop down list based on the parent class. What other attributes are > available on the passed in association? From the example I see that I > can check association.name, but is there something like > association.parent where I can do something like > association.parent.other_attribute?
association is a reflection object, the association definition, not an instance record. You can use @record variable -- 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.
