It appears that rails ''should'' reload controllers as they are modified. "As soon as a method is created or changed, it immediately is noticed and integrated into the current Rails system." http://www.linuxjournal.com/node/8433/print Do other peoples'' rails do that? Is this just me? If I understand correctly with each call it should load the file with the right controller, then dismantle it after servicing the call (hence ''require'' working again to reload the file). Except that require will never load a file twice. Guess I''m confused :) Thanks for any help. -Roger -- 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 -~----------~----~----~----~------~----~------~--~---
On 17 Oct 2007, at 16:19, Roger Pack wrote:> > It appears that rails ''should'' reload controllers as they are > modified. >This only happens (by default) in development mode. Are you seeing this in development mode? Fred --~--~---------~--~----~------------~-------~--~----~ 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:> On 17 Oct 2007, at 16:19, Roger Pack wrote: > >> >> It appears that rails ''should'' reload controllers as they are >> modified. >> > > This only happens (by default) in development mode. Are you seeing > this in development mode? > > Fredyeah for some reason happens in development, with config.cache_classes = false in development.rb. Weird. -- 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 -~----------~----~----~----~------~----~------~--~---