Add a method render_to to catch exception