Call function after controller function execution

Roland Mai 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?