This project is archived and is in readonly mode.

#2553 ✓stale
Jos Backus

ActionView::TemplateHandlers::ERB.erb_trim_mode= broken

Reported by Jos Backus | April 23rd, 2009 @ 10:27 PM | in 2.3.10

Adding

{{{ ActionView::TemplateHandlers::ERB.erb_trim_mode = '%-' }}}

to config/initializers/liveops.rb yields:

{{{ /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/class/attribute_accessors.rb:37:in erb_trim_mode=': can't modify frozen class/module (TypeError)

    from /var/home/josb/src/ops/trunk/www/main/config/initializers/liveops.rb:8
    from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:145:in `load_without_new_constant_marking'
    from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:145:in `load'
    from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
    from /opt/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:145:in `load'
    from /opt/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:600:in `load_application_initializers'
    from /opt/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:599:in `each'
    from /opt/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:599:in `load_application_initializers'
     ... 9 levels...
    from /opt/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/server.rb:84
    from /opt/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /opt/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /home/josb/src/ops/trunk/www/main/script/server:3

}}}

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Referenced by

Pages