Forum: Ruby on Rails possible to reload a model in script/console(irb)?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
6559f9b9607a89074ea5e238d31ffbc2?d=identicon&s=25 Kelly Felkins (Guest)
on 2006-02-14 21:23
(Received via mailing list)
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.

14b7344777a56ac9a1fad849f5d6da2a?d=identicon&s=25 sayoyo Sayoyo (sayoyo)
on 2006-02-14 21:29
(Received via mailing list)

I wish to know if it is possible to update more than
one "<div>" 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


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
5d15c6821f3c3054c04b85471824ba7c?d=identicon&s=25 Mikkel Bruun (Guest)
on 2006-02-14 22:02
(Received via mailing list)
The most useful rails trick ever:


a true lifesaver...

Mikkel Bruun    - Football Portal(DK) - Football News(DK)      - Buy Old Stuff!(DK)
59de94a56fd2c198f33d9515d1c05961?d=identicon&s=25 Tom Mornini (Guest)
on 2006-02-14 22:11
(Received via mailing list)
On Feb 14, 2006, at 1:00 PM, Mikkel Bruun wrote:

> The most useful rails trick ever:
> Dispatcher.reset_application!
> a true lifesaver...


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 Mornini
Ff82af3238a57fbd1212832ec1a19f28?d=identicon&s=25 Dylan Stamat (Guest)
on 2006-02-14 22:20
(Received via mailing list)
Dude... you already posted this, and got replies.  Then, you sent a
message to the list.  WTF ?
Get a GMail account, archive Rails posts, and be happy :)
This topic is locked and can not be replied to.