Ruby 使用ri_cal设置组织者名称

Ruby 使用ri_cal设置组织者名称,ruby,icalendar,Ruby,Icalendar,有没有办法用ri_cal设置组织者的名字 RFC显示它是这样做的: ORGANIZER;CN="John Smith":MAILTO:jsmith@host.com 但我不知道是否有办法添加;CN=“foo”部分转到具有ri_cal的组织者条目。放弃,切换到。遇到了完全相同的问题。奇怪的是,解决方案是说“event.organizer\u property”而不是“event.organizer”。。。像这样: options = {'CN' => our_event.pa

有没有办法用ri_cal设置组织者的名字

RFC显示它是这样做的:

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

但我不知道是否有办法添加
;CN=“foo”
部分转到具有ri_cal的组织者条目。

放弃,切换到。

遇到了完全相同的问题。奇怪的是,解决方案是说“event.organizer\u 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

RiaCalk似乎并没有逃脱财产价值,所以你需要考虑如果你需要逃避价值-这篇文章是有用的: