Use correct TemplateError api for rails4