I just posted this as a ticket, but figured that lots of you probably
don''t read every ticket posted to the dev.ror site.
The problem you may have noticed is that a rails error can sometimes
take a long time to display, which really slows you down if you''re
doing some kind of hybridized interface/test-driven development method
(i.e. modify code, refresh in browser, rinse, repeat.) ..(regardless
of the sheer horror of this ad-hoc development approach.)
--
The simple reason is that the entire template parameters are written
to the error page in a hidden div, which is shown when you click "show
template parameters". Try clicking this on a slow-loading error page,
and watch it scroll out of sight, particularly if you have a lot of
database records or other variables in memory.
This means of course that your page can grow quite large -- 50k or
100k of html -- hence the delay.
I noticed that I never actually use this "template parameter"
function, so deleted it from the rescue template in my rails
installation. This is probably a bad idea, but it''s solved my
problem! :)
Anyway, if you''ve got ideas on how to solve this one, i''d love
to hear
them-- solving this issue without removing functionality would be
great.
Here''s the ticket
http://dev.rubyonrails.com/ticket/1222
--Courtenay