gem ice_cube for reccurence events

后端 未结 1 419
一生所求
一生所求 2021-01-03 02:07

I have simple Event model (title, date, user) And I created Events Calendar by months (gem \'watu_table_builder\'). I need the feature to create repeating events. I figured

相关标签:
1条回答
  • 2021-01-03 02:32

    You won't be able to query the database for the Event's serialized (yaml) schedule to filter occurrences by month, if that's what you're trying to do. If you need to do that, then you'll have to store the schedule.occurrences as rows in a separate table join: that's what I do in our app.

    I might have more details to add to this answer later, meanwhile have a look at my schedule_attributes gem if it helps you build the selectors for building schedules from user input (I still need to update docs and release it...)

    0 讨论(0)
提交回复
热议问题