Replaced render_new_resource by api_render with new: true.