On Miércoles, 5 de Mayo de 2010 12:32:57 Iñaki Baz Castillo escribió: > 2010/5/5 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>: > > You can use a before_filter: > > > > before_filter :set_associated_limit > > protected > > def set_associated_limit > > active_scaffold_config.columns[:cli_outs].associated_limit = > > action_name == 'show' ? nil : 0 > > end > > Great! But just a note: it must be a public method, if not it doesn't work. > :)
My filters always are protected and I have no problem. Actions must be public methods, filters don't need to be public. -- 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.
