Peter Michaux
2005-Nov-12 19:32 UTC
Where is a webpage just before Rails sends it to a browser?
Hi, ActionView assembles the requested webpage from templates, layouts, helpers, partials, etc. Once the whole page is assembed where can I grab it and do something to it just before it is sent off to the browser? I suppose I want an "after view " filter or something similar to controller/action filters or model callbacks. And if I cannot grab it where is the completely assembed web page located in the Rails core? Thanks, Peter _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
David Heinemeier Hansson
2005-Nov-12 21:58 UTC
Re: Where is a webpage just before Rails sends it to a browser?
> ActionView assembles the requested webpage from templates, layouts, > helpers, partials, etc. Once the whole page is assembed where can I grab it > and do something to it just before it is sent off to the browser? I suppose > I want an "after view " filter or something similar to controller/action > filters or model callbacks.response.body after render has been called (such as in an after_filter). -- David Heinemeier Hansson http://www.loudthinking.com -- Broadcasting Brain http://www.basecamphq.com -- Online project management http://www.backpackit.com -- Personal information manager http://www.rubyonrails.com -- Web-application framework