Where is a webpage just before Rails sends it to a browser?


#1

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


#2

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 H.
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