in the console, I know I can reload a file with load ''foo.rb''. Is there a way to reload everything, as if I typed quit and script/ console, but without losing the history (I type slow). I tried reload! but that doesn''t do it. thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
reload! should work. What''s the problem when you do that? On 17 sep, 14:46, rubynuby <dear...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> in the console, I know I can reload a file with load ''foo.rb''. Is > there a way to reload everything, as if I typed quit and script/ > console, but without losing the history (I type slow). I tried > reload! but that doesn''t do it. thanks--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I made changes in vendor/plugins but they''re not loaded. Changes in models DO get reloaded On Sep 17, 6:42 am, deegee <dirkgro...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> reload! should work. What''s the problem when you do that? > > On 17 sep, 14:46, rubynuby <dear...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > in the console, I know I can reload a file with load ''foo.rb''. Is > > there a way to reload everything, as if I typed quit and script/ > > console, but without losing the history (I type slow). I tried > > reload! but that doesn''t do it. thanks--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 17 Sep 2008, at 15:27, rubynuby wrote:> > I made changes in vendor/plugins but they''re not loaded. Changes in > models DO get reloaded >By default plugins aren''t marked as reloadable (in the same way that the rails framework isn''t reloaded). You can change this by fiddling with Dependencies.load_once_paths or config.reload_plugins Fred> On Sep 17, 6:42 am, deegee <dirkgro...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> reload! should work. What''s the problem when you do that? >> >> On 17 sep, 14:46, rubynuby <dear...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> >> >>> in the console, I know I can reload a file with load ''foo.rb''. Is >>> there a way to reload everything, as if I typed quit and script/ >>> console, but without losing the history (I type slow). I tried >>> reload! but that doesn''t do it. thanks > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
rubynuby wrote:> > > in the console, I know I can reload a file with load ''foo.rb''. Is > there a way to reload everything, as if I typed quit and script/ > console, but without losing the history (I type slow). I tried > reload! but that doesn''t do it. thanks > --~--~---------~--~----~------------~-------~--~----~ > 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 > -~----------~----~----~----~------~----~------~--~--- > > >you can use config.load_paths<<"#{RAILS_ROOT}/app/somefolder/" and then reload! within ruby/script console will reload the changed files in those directories. side note config.load_paths is deprecated so use config.autoload_paths instead -- View this message in context: http://old.nabble.com/how-to-reload-everything-in-script-console-tp19531363p30408204.html Sent from the RubyOnRails Users mailing list archive at Nabble.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.