On Nov 18, 7:50 pm, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote: > I can only imagine that Rails 2.2.1 somehow caused the filter not to be > loaded. Does it work if you include the filter code literally in > environment.rb? What about it you put it in haml/lib/haml/filters.rb?
I get the same error when I include the filter code literally in environment.rb. I wasn't quite sure where to locate your second path. I have a haml directory under vendor/plugins which just contained an init.rb. Inside that directory I created lib/haml/filters.rb with just my filter code. I then got a NameError: uninitialized constant Haml::Filters::Base. So I removed that file, found the gem installation and the haml/lib/ haml/filters.rb in it, and added my filter alongside the others. This worked. Yay! I'm delighted it's working, but it's not ideal to patch the gem installation directly. Is there a better way for me to install haml in my app (perhaps freezing the gem to vendor/gems)? Thanks and regards, Andy Stewart ------- http://airbladesoftware.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
