> 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?
After some more experimentation, I can confirm my custom filter works
when I run my app in development mode but not in production mode (same
code, same box, just passing -p production to mongrel_server).
I tried requiring my smarty_pants.rb file at different locations in
config/environment.rb, in the hope that this might sort things out,
but it didn't.
Rails 2.2.1 must have changed the way it sets itself up in production,
in a way that affects how Haml registers custom filters.
Unfortunately I can't figure out what that change might be.
I can't be the only one with a custom filter on Rails 2.2.1 in
production -- are others running into this problem too?
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
-~----------~----~----~----~------~----~------~--~---