有没有办法用ri_cal设置组织者的名字?
RFC显示了这样做:
ORGANIZER;CN="John Smith":MAILTO:jsmith@host.com
但我无法弄清楚是否有办法将;CN="foo"
部分添加到带有ri_cal的ORGANIZER
条目中。
答案 0 :(得分:3)
有这个完全相同的问题。奇怪的是,解决方案是说'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
答案 1 :(得分:0)
放弃,切换到icalendar gem。