> It can't. Filters are run at compile-time; they don't have access to the > execution context. This won't be the case in 2.0, but for now it is. > > I agree with other responders that the best solution would be a helper > method. You don't need to define it in your Controller class; you could > make a Helper module and include it in the eigenclass of the instance, > or you could just add a method to Haml::Helpers, which is automatically > included. > > - Nathan
Yeah, I just discovered that about 5 minutes ago. I guess I'll just leave it as it is for now then. But definitely, this is a feature request: I'd like to have access to the scope object from within filters in the future. Bob. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" 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/haml?hl=en -~----------~----~----~----~------~----~------~--~---
