Ruby on rails 如何在rails上动态更改事件日历事件详细信息?

Ruby on rails 如何在rails上动态更改事件日历事件详细信息?,ruby-on-rails,plugins,calendar,Ruby On Rails,Plugins,Calendar,我在我的rails项目(rails 2.3.8)中使用,我需要添加一个功能,允许用户从下拉菜单中选择值,并根据事件中加载的内容进行更改。(通常在事件日历中,它会在事件上显示事件名称)。有人能给我一个解决这个问题的办法吗 我找到了这个问题的答案,我们可以通过在event\u strips\u for\u month方法中传递参数来实现 app/controllers/calendar\u controller.rb @event_strips = Event.event_strips_for_mo

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

我找到了这个问题的答案,我们可以通过在event\u strips\u for\u month方法中传递参数来实现

app/controllers/calendar\u controller.rb

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

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

我找到了这个问题的答案,我们可以通过在event\u strips\u for\u month方法中传递参数来实现

app/controllers/calendar\u controller.rb

@event_strips = Event.event_strips_for_month(@shown_month, :include => :some_relation, :conditions => 'some_relations.some_column = true')
这可能有助于其他新手了解活动日历。谢谢