SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist
    Join Date
    Feb 2006
    Location
    Worcs. UK
    Posts
    404
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dispatcher.reset_application! alternative in RoR 2

    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!'. This doesn't work in Rails 2. Is there an alternative way to do this, or am I forced to exit and run script/console again?

  2. #2
    SitePoint Evangelist
    Join Date
    Feb 2006
    Location
    Worcs. UK
    Posts
    404
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi. I got a solution via ruby-forum.com.

    And that solution is to use:
    Code:
    reload!
    Simple when you know how


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •