# ThreadError: stopping only thread

**URL:** <https://www.ruby-forum.com/t/threaderror-stopping-only-thread/190101>\
**Category:** Rails\
**Created:** [June 15, 2010, 3:40am UTC](https://www.ruby-forum.com/t/threaderror-stopping-only-thread/190101 "2010-06-15T03:40:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![laurin1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/919ad9/32.png) [@laurin1](https://www.ruby-forum.com/u/laurin1)\
**Post date:** [June 15, 2010, 3:40am UTC](https://www.ruby-forum.com/t/threaderror-stopping-only-thread/190101/1 "2010-06-15T03:40:44Z")

</div>

Running Rails 2.3.5

I am new to Ruby and Rails. From the console I get the following  
ThreadError below. Any suggestions are very welcome.

> > app.get “/slides”  
> > =\> 200
> 
> > app.request.path\_parameters  
> > =\> {“action”=\>“index”, “controller”=\>“slides”}
> 
> > app.get “/slides/1”  
> > ThreadError: stopping only thread  
> > note: use sleep to stop forever  
> > from  
> > c:/ProgramFiles/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/ac  
> > tion\_controller/reloader.rb:31:in `lock' from c:/ProgramFiles/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/ac tion_controller/reloader.rb:31:in`run’  
> > from  
> > c:/ProgramFiles/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/ac  
> > tion\_controller/dispatcher.rb:108:in `call' from c:/ProgramFiles/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lin t.rb:47:in`\_call’  
> > from  
> > c:/ProgramFiles/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lin  
> > t.rb:35:in `call' from c:/ProgramFiles/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/ac tion_controller/integration.rb:316:in`process’  
> > from  
> > c:/ProgramFiles/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/ac  
> > tion\_controller/integration.rb:197:in `get’  
> > from (irb):3
> 
> >

---

<div class="post-metadata">

**Author:** ![laurin1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/919ad9/32.png) [@laurin1](https://www.ruby-forum.com/u/laurin1)\
**Post date:** [June 21, 2010, 11:51pm UTC](https://www.ruby-forum.com/t/threaderror-stopping-only-thread/190101/2 "2010-06-21T23:51:22Z")

</div>

Keith,  
I too am using the “Up and Running” book and had the same problem.  
I googled and found that you can fix this by editing:

```
config/environments/development.rb

```

and setting:

```
config.cache_classes = true

```

Of course, you’ll want to undo that change as soon as you are done  
with the console. Otherwise you’ll need to restart scrip/server every  
time you changes one of your class definitions.

For the source of this fix visit:

```
https://rails.lighthouseapp.com/projects/8994/tickets/3153-actioncontrollerintegrationsession-broken-in-234

```

Enjoy,  
Robert

---

<div class="post-metadata">

**Author:** ![laurin1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/919ad9/32.png) [@laurin1](https://www.ruby-forum.com/u/laurin1)\
**Post date:** [June 23, 2010, 3:30pm UTC](https://www.ruby-forum.com/t/threaderror-stopping-only-thread/190101/3 "2010-06-23T15:30:38Z")

</div>

Thanks Robert. I will give this a try.

Regards,  
Keith
