Err, make that @container.deployment_metadata_for(@container.current_deployment_datetime).id