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? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Jul-09 11:46 UTC
Re: Dispatcher.reset_application! alternative in RoR 2
On 9 Jul 2008, at 12:36, Rob Nichols wrote:> > 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?reload! Fred> > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> reload! > > FredSplendid! Rob -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---