【问题标题】:How to change the event calendar event details dynamically on rails ?如何在 Rails 上动态更改事件日历事件详细信息?
【发布时间】:2011-09-15 03:36:10
【问题描述】:

我在我的 rails 项目(rails 2.3.8)上使用event calendar,我需要添加允许用户从下拉菜单中选择值的功能,并根据事件加载的内容应该更改. (通常在事件日历中,它会在事件上显示事件名称)。请问有人可以给我一个解决这个问题的方法吗?

【问题讨论】:

    标签: ruby-on-rails plugins calendar


    【解决方案1】:

    我找到了这个问题的答案,我们可以通过在 event_strips_for_month 方法上传递参数来做到这一点

    app/controllers/calendar_controller.rb

    @event_strips = Event.event_strips_for_month(@shown_month, :include => :some_relation, :conditions => 'some_relations.some_column = true')
    

    这可能有助于其他新人了解活动日历。谢谢

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-11-14
      • 2023-01-10
      • 1970-01-01
      相关资源
      最近更新 更多