Call function after controller function execution

Hi,

I have been wondering for a while now, how to have a function called
right after another function in the controller is executed and before
the template is rendered.

Thanks,

Roland

Roland M. wrote:

I have been wondering for a while now, how to have a function called
right after another function in the controller is executed and before
the template is rendered.

def func_1

do something

func_2()
render :something
end

What am I missing?


Phlip
Redirecting... ← NOT a blog!!!

Thanks Phlip,

I am doing that right now, but I was wondering if there was something
like after_filter … which only executes after the template has been
rendered.

Thanks,

Roland