# Possible to reload a model in script/console(irb)?

**URL:** <https://www.ruby-forum.com/t/possible-to-reload-a-model-in-script-console-irb/68263>\
**Category:** Rails\
**Created:** [February 14, 2006, 9:23pm UTC](https://www.ruby-forum.com/t/possible-to-reload-a-model-in-script-console-irb/68263 "2006-02-14T21:23:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aseldo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e95f7d/32.png) [@aseldo](https://www.ruby-forum.com/u/aseldo)\
**Post date:** [February 14, 2006, 9:23pm UTC](https://www.ruby-forum.com/t/possible-to-reload-a-model-in-script-console-irb/68263/1 "2006-02-14T21:23:00Z")

</div>

I often use script/console to interact with models.

It would be nice if script/console acted like WEBrick when it comes to  
reloading classes that get updated. Anyway to do this?

Short of this, is there a way to tell script/console to reload a class  
manually? My current solution is to exit and restart script/console.

-Kelly

---

<div class="post-metadata">

**Author:** ![aseldo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e95f7d/32.png) [@aseldo](https://www.ruby-forum.com/u/aseldo)\
**Post date:** [February 14, 2006, 9:29pm UTC](https://www.ruby-forum.com/t/possible-to-reload-a-model-in-script-console-irb/68263/2 "2006-02-14T21:29:04Z")

</div>

Hi,

I wish to know if it is possible to update more than  
one “

” with a single call of ajax?

I try the example in agile web development with rails,  
but can’t make it work.

does some one know how to do this???

thanks you very much

Saiho

* * *

Do You Yahoo!?  
Tired of spam? Yahoo! Mail has the best spam protection around

> **[\[object](https://mail.yahoo.com/)**
>
> \[object

---

<div class="post-metadata">

**Author:** ![aseldo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e95f7d/32.png) [@aseldo](https://www.ruby-forum.com/u/aseldo)\
**Post date:** [February 14, 2006, 10:02pm UTC](https://www.ruby-forum.com/t/possible-to-reload-a-model-in-script-console-irb/68263/3 "2006-02-14T22:02:30Z")

</div>

The most useful rails trick ever:

Dispatcher.reset\_application!

a true lifesaver…

Mikkel B.

www.strongside.dk - Football Portal(DK)  
[nflfeed.helenius.org](http://nflfeed.helenius.org) - Football News(DK)  
ting.minline.dk - Buy Old Stuff!(DK)

---

<div class="post-metadata">

**Author:** ![aseldo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e95f7d/32.png) [@aseldo](https://www.ruby-forum.com/u/aseldo)\
**Post date:** [February 14, 2006, 10:11pm UTC](https://www.ruby-forum.com/t/possible-to-reload-a-model-in-script-console-irb/68263/4 "2006-02-14T22:11:38Z")

</div>

On Feb 14, 2006, at 1:00 PM, Mikkel B. wrote:

> The most useful rails trick ever:
> 
> Dispatcher.reset\_application!
> 
> a true lifesaver…

Wow!

Great tip!

I wouldn’t have asked, because I’d assume it was too audacious  
to imply that such a thing _might_ be possible!

I’m sure glad the OP asked… 🙂

–  
– Tom M.

---

<div class="post-metadata">

**Author:** ![aseldo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e95f7d/32.png) [@aseldo](https://www.ruby-forum.com/u/aseldo)\
**Post date:** [February 14, 2006, 10:20pm UTC](https://www.ruby-forum.com/t/possible-to-reload-a-model-in-script-console-irb/68263/5 "2006-02-14T22:20:47Z")

</div>

Dude… you already posted this, and got replies. Then, you sent a  
“test”  
message to the list. WTF ?  
Get a GMail account, archive Rails posts, and be happy 🙂
