Are you in production or development mode? Robert Mannl wrote:> Has anyone ever experienced old methods being "referenced" by Ruby/Rails > when developing? > > I.e. you have a method "my_method" in, say, categories_helper.rb, then I > copy that function to application_helper.rb, improve it (cause it needed > some improvements), and remove the old "my_method" from > categories_helper.rb. > Now any views that use "my_method" still reference/use/call the old > method, *even though it''s not in the code anymore*. > > It''s very weird, and it happened several times in the last couple of > days, and I''m pretty positive it''s not me, but Ruby/Rails > > Only thing that seems to help is a restart - hehe and that almost (but > not quite) slows down my development time to PHP-mode > > Any ideas? > > > > > Rob > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Has anyone ever experienced old methods being "referenced" by Ruby/Rails when developing? I.e. you have a method "my_method" in, say, categories_helper.rb, then I copy that function to application_helper.rb, improve it (cause it needed some improvements), and remove the old "my_method" from categories_helper.rb. Now any views that use "my_method" still reference/use/call the old method, *even though it''s not in the code anymore*. It''s very weird, and it happened several times in the last couple of days, and I''m pretty positive it''s not me, but Ruby/Rails Only thing that seems to help is a restart - hehe and that almost (but not quite) slows down my development time to PHP-mode Any ideas? Rob
Development> Are you in production or development mode?Thanks, Rob
On 27-mei-2005, at 8:08, Robert Mannl wrote:> Development > >> Are you in production or development mode?Coming from PHP background I would love to have an elaborate document somewhere on what __exactly__ is persisted in Rails between requests (within one FCGI process responder). Sometimes it is very amibuous - when a file will be reloaded between requests and which files will be reloaded (environment will? or not? files in "lib" - will or not?). -- Julian "Julik" Tarkhanov