Change the deprecated direct_to_template to render.