Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

thread safety issues with view rendering in 2.3 RC1 (edge)

#1937

when config.threadsafe! is uncommented in production and a page is loaded for the second time an error occurs.

"can't modify frozen object"

Environment specs

  • Rails 2.3 rc1
  • ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9]
  • OSX 10.5.6
  • ERB
  • Haml 2.1.0 ( github )

Error:

"can't modify frozen object"

Full stack trace:

http://gist.github.com/61816

Note

this occurs with both ERB and Haml templates

Reported by stefanpenner · February 11th, 2009 @ 04:17 AM

State: resolved
Milestone: none
Assigned to: josh josh
Importance: none

Activity

  1. Andrew White
  2. josh
    josh
    • Assigned user set to josh
    • State changed from new to open
    • Milestone cleared.

    February 11th, 2009 @ 03:07 PM

  3. akia
    akia

    I am having the exact same problem. Andrew White's patch applied to rails? I've updated edge rails to the latest but nothing changed!

    February 12th, 2009 @ 06:16 PM

  4. josh
    josh
    • State changed from open to resolved

    Just applied yet another fix. I think it did it this time. Please try again and let me know how it goes.

    February 12th, 2009 @ 08:03 PM

  5. akia
    akia

    Oh, no more errors, it works well now. Thanks so much and keep up the good work.

    February 12th, 2009 @ 08:12 PM