# Dispatcher.reset\_application! alternative in RoR 2

**URL:** <https://www.ruby-forum.com/t/dispatcher-reset-application-alternative-in-ror-2/142586>\
**Category:** Rails\
**Created:** [July 9, 2008, 1:36pm UTC](https://www.ruby-forum.com/t/dispatcher-reset-application-alternative-in-ror-2/142586 "2008-07-09T13:36:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![reggieb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/3e96dc/32.png) [@reggieb](https://www.ruby-forum.com/u/reggieb)\
**Post date:** [July 9, 2008, 1:36pm UTC](https://www.ruby-forum.com/t/dispatcher-reset-application-alternative-in-ror-2/142586/1 "2008-07-09T13:36:46Z")

</div>

In console mode, I used to be able to reset everything (to test changes  
in models for example) by using the Dispatcher method  
‘reset\_application!’.

That is, if I was testing the functionality of a model using the console  
(script/console), when I made a change to the model, the effect would  
only take effect at the console if I either exitted the console and  
restarted it, or I ran Dispatcher.reset\_application!. Obviously the  
latter is preferable, but it does not seem to work in Rails 2.

Is there an alternative way to do this, or am I forced to exit and run  
script/console again?

---

<div class="post-metadata">

**Author:** ![reggieb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/3e96dc/32.png) [@reggieb](https://www.ruby-forum.com/u/reggieb)\
**Post date:** [July 9, 2008, 2:28pm UTC](https://www.ruby-forum.com/t/dispatcher-reset-application-alternative-in-ror-2/142586/2 "2008-07-09T14:28:35Z")

</div>

On 9 Jul 2008, at 12:36, Rob N. wrote:

> restarted it, or I ran Dispatcher.reset\_application!. Obviously the  
> latter is preferable, but it does not seem to work in Rails 2.
> 
> Is there an alternative way to do this, or am I forced to exit and run  
> script/console again?

reload!

Fred

---

<div class="post-metadata">

**Author:** ![reggieb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/3e96dc/32.png) [@reggieb](https://www.ruby-forum.com/u/reggieb)\
**Post date:** [July 9, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/dispatcher-reset-application-alternative-in-ror-2/142586/3 "2008-07-09T15:46:00Z")

</div>

Frederick C. wrote:

> reload!
> 
> Fred

Splendid!

Rob
