Obtenha o resumo do template nos controladores Rails

def template_digest    
tmpl
= lookup_context.find(action_name, _prefixes)
ActionView::Digestor.digest(name: tmpl.virtual_path, finder: lookup_context)
end