开发者

How to change the event calendar event details dynamically on rails ?

开发者 https://www.devze.com 2023-04-05 12:22 出处:网络
I\'m using event calendar on my rails project (rails 2.3.8) and I ne开发者_运维技巧ed to add feature that allows to users to pick value from drop down menu and according to that things which have load

I'm using event calendar on my rails project (rails 2.3.8) and I ne开发者_运维技巧ed to add feature that allows to users to pick value from drop down menu and according to that things which have loaded on event should be change. (Normally in event calendar it shows event name on the events). Please can some one give me a solution for this problem?


I found a answer for this problem and we can do that by passing parameters on event_strips_for_month method

app/controllers/calendar_controller.rb

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

This might be helpful for another new comer to learn about event calendar. Thanks

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号