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.

config.threadsafe! appears to be broken.

#4095

On Rails 3.0.0beta, enabling 'config.threadsafe!', restarting 'script/rails server', and reloading any previously available view instantly causes an 'ActionController::RoutingError'.

Removing 'config.threadsafe!' fixes the problem.

Reported by Don Werve · March 2nd, 2010 @ 10:04 PM

State: resolved
Milestone: 3.0.2
Assigned to: Yehuda Katz (wycats) Yehuda Katz (wycats)
Importance: High

Activity

  1. José Valim
    José Valim
    • Assigned user set to josh

    March 3rd, 2010 @ 08:27 AM

  2. José Valim
  3. josh
    josh
    • Assigned user changed from josh to Carl Lerche

    March 3rd, 2010 @ 02:48 PM

  4. Jeremy Kemper
    Jeremy Kemper
    • State changed from new to open

    March 3rd, 2010 @ 04:10 PM

  5. Obie
    Obie

    Any news on this ticket?

    April 28th, 2010 @ 02:51 AM

  6. Kim Altintop
    Kim Altintop

    I was able to work around it by adding basically everything (i.e. config.load_paths) to config.eager_load_paths. So the question for me would be: what's the reasoning behind disabling dependency loading with 'threadsafe!'? Does AS::Dependencies need to be made threadsafe?

    April 28th, 2010 @ 08:24 AM

  7. Rohit Arondekar
    Rohit Arondekar

    Not reproducible on Rails 3.0.0.beta3.

    Created a very simple Post scaffold and ran rails server, everything worked fine. Added config.threadsafe! to config/application.rb and then ran rails server, everything worked fine again.

    May 10th, 2010 @ 01:50 AM

  8. DHH
    DHH
    • Milestone cleared.

    June 1st, 2010 @ 09:52 PM

  9. Jeremy Kemper
    Jeremy Kemper
    • Assigned user changed from Carl Lerche to Yehuda Katz (wycats)

    Need anyone running their Rails 3 app on JRuby to reproduce this.

    June 7th, 2010 @ 11:44 PM

  10. Rohit Arondekar
    Rohit Arondekar

    Cannot reproduce on Rails master, ruby version: jruby 1.5.0 (ruby 1.8.7 patchlevel 249) (2010-05-12 6769999) (OpenJDK 64-Bit Server VM 1.6.0_18) [amd64-java]

    Steps taken to try and reproduce:
    * Created a simple Post scaffold * Ran rails server, everything worked fine * Added config.threadsafe! to config/application.rb * Ran rails server, views still loading fine

    I used WEbrick, do we need to use Mongrel or some other server to reproduce this?

    June 11th, 2010 @ 03:56 AM

  11. Jeremy Kemper
    Jeremy Kemper
    • State changed from open to resolved

    June 11th, 2010 @ 10:58 PM

  12. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to High

    October 15th, 2010 @ 11:01 PM