[Rails] Re: Native erb lacks -%>, where is Rails'' erb?

Simo Gal
2006-02-20T16:00:35Z

> In order to enable a trim mode -%> you have to instantiate ERB object
> with trim mode parameter like
>
> e = ERB.new(str, nil, ''-'')
>


Inside rails, I add the following line in my
config/custom_environment.rb

  ActionView::Base.erb_trim_mode=''%<>-''

that enables all erb options

    %  enables Ruby code processing for lines beginning with %
    <> omit newline for lines starting with <% and ending in %>
    >  omit newline for lines ending in %>

Simo
 AddSW

--
Posted via http://www.ruby-forum.com/.