This project is archived and is in readonly mode.
config.threadsafe! appears to be broken.
Reported by Don Werve | March 2nd, 2010 @ 10:04 PM | in 3.0.2
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.
Comments and changes to this ticket
-
José Valim March 3rd, 2010 @ 08:27 AM
- Assigned user set to josh
-
José Valim March 3rd, 2010 @ 08:40 AM
- Milestone cleared.
-
josh March 3rd, 2010 @ 02:48 PM
- Assigned user changed from josh to Carl Lerche
-
Jeremy Kemper March 3rd, 2010 @ 04:10 PM
- State changed from new to open
-
Kim Altintop April 28th, 2010 @ 08:24 AM
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?
-
Rohit Arondekar May 10th, 2010 @ 01:50 AM
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.
-
DHH June 1st, 2010 @ 09:52 PM
- Milestone cleared.
-
Jeremy Kemper June 7th, 2010 @ 11:44 PM
- Assigned user changed from Carl Lerche to Yehuda Katz (wycats)
Need anyone running their Rails 3 app on JRuby to reproduce this.
-
Rohit Arondekar June 11th, 2010 @ 03:56 AM
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 fineI used WEbrick, do we need to use Mongrel or some other server to reproduce this?
-
Jeremy Kemper June 11th, 2010 @ 10:58 PM
- State changed from open to resolved
-
Jeremy Kemper October 15th, 2010 @ 11:01 PM
- Milestone set to 3.0.2
- Importance changed from to High
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>