gpt4 book ai didi

ruby - 使用 ri_cal 设置组织者名称

转载 作者:数据小太阳 更新时间:2023-10-29 08:01:16 25 4
gpt4 key购买 nike

有什么方法可以用 ri_cal 设置组织者的名字吗?

RFC 显示它是这样做的:

 ORGANIZER;CN="John Smith":MAILTO:jsmith@host.com

但我不知道是否有办法使用 ri_cal 将 ;CN="foo" 部分添加到 ORGANIZER 条目中。

最佳答案

遇到了完全相同的问题。奇怪的是,解决方案是说“event.organizer_property”而不是“event.organizer”……像这样:

      options = {'CN' => our_event.parent.title}
organizer_property = RiCal::PropertyValue::CalAddress.new(nil,
:value => url,
:params => options)
event.organizer_property = organizer_property

生成的 ICS 是正确的,就像这样,分号和冒号之间有 CN 属性:

      ORGANIZER;CN=The Bold Italic:http://localhost/clips/3-the-bold-italic

关于ruby - 使用 ri_cal 设置组织者名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9986858/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com