Re: [Rails-core] (Rails3-master) erubis: how to use things like preprocessing?

2010-04-07 Thread Michael Koziarski
Not in application.rb, at that point the object does not exist yet it seems. I wonder why I don't see ANY mention whatsoever of such an important feature like erubis preprocessing when someone writes about Rails 3 x-times faster? Or about what it means that erubis is in Rails 3 now? Or did I

Re: [Rails-core] (Rails3-master) erubis: how to use things like preprocessing?

2010-04-07 Thread Yehuda Katz
Yeah, Essentially, the way preprocessing works is by providing a completely different (static) helper to Erubis at compile-time. You might think of link_to as static (if you use it that way), but it actually does a whole slew of request-specific things. Over time, helpers like link_to actually

[Rails-core] (Rails3-master) erubis: how to use things like preprocessing?

2010-04-06 Thread michael.hasenst...@googlemail.com
(Rails3 latest git master) Subject says it. I'm trying to figure out how to use erubis features described here: http://www.kuwata-lab.com/erubis/users-guide.05.html#rails, especially preprocessing. My question is, where do I place the Erubis::Helpers::RailsHelper.preprocessing=true Not in