# How can I get the CONSOLE (./script/console) to automatically detect/handle changes to code that I c

**URL:** <https://www.ruby-forum.com/t/how-can-i-get-the-console-script-console-to-automatically-detect-handle-changes-to-code-that-i-c/156160>\
**Category:** Rails\
**Created:** [December 22, 2008, 12:28am UTC](https://www.ruby-forum.com/t/how-can-i-get-the-console-script-console-to-automatically-detect-handle-changes-to-code-that-i-c/156160 "2008-12-22T00:28:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [December 22, 2008, 12:28am UTC](https://www.ruby-forum.com/t/how-can-i-get-the-console-script-console-to-automatically-detect-handle-changes-to-code-that-i-c/156160/1 "2008-12-22T00:28:47Z")

</div>

Hi,

Is there way to get the CONSOLE to automatically detect changes to code  
and  
re-act accordingly?

If I’m using the console currently I see that I have to close the  
console  
first and restart. I see one can type in “reload!” manually to reload,  
but  
wondering if there’s a way to automate this I haven’t come across yet.

Tks

---

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [December 22, 2008, 12:29am UTC](https://www.ruby-forum.com/t/how-can-i-get-the-console-script-console-to-automatically-detect-handle-changes-to-code-that-i-c/156160/2 "2008-12-22T00:29:58Z")

</div>

On Dec 21, 11:28 pm, “Greg H.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Hi,
> 
> Is there way to get the CONSOLE to automatically detect changes to code and  
> re-act accordingly?
> 
> If I’m using the console currently I see that I have to close the console  
> first and restart. I see one can type in “reload!” manually to reload, but  
> wondering if there’s a way to automate this I haven’t come across yet.

Nope, got to type reload!

Fred
