Using <%- ... -%> by default

Does anybody know how to make RoR to use <%- some_code -%> by default? I
mean how to make RoR to delete all empty strings by default (without
using <%- some_code -%>. Just usually using <% some code %>), that came
to template from Ruby-insertions.

Sory for my English. Thanks.

On 19 Aug 2008, at 09:48, Nikita P. wrote:

Does anybody know how to make RoR to use <%- some_code -%> by
default? I
mean how to make RoR to delete all empty strings by default (without
using <%- some_code -%>. Just usually using <% some code %>), that
came
to template from Ruby-insertions.

You can set ActionView::Base.erb_trim_mode. Possible values are here
http://www.ruby-doc.org/stdlib/libdoc/erb/rdoc/classes/ERB.html#M000684

Fred