Questions tagged [ice-cube]

ice_cube is a ruby library for easily handling repeated events (schedules). The API is modeled after iCalendar repeated dates.

ice_cube is a ruby library for easily handling repeated events (schedules). The API is modeled after iCalendar repeated dates.

Resources:

47 questions
1
vote
1 answer

Event Recurrence with Time Zones using the Ice Cube gem

How do I utilize the ice_cube gem for items (events) that have both a start and end time (Ex: Mon, Wed, Fri @ 10pm-11:30pm EST)? I currently store all times in the database in UTC. So for the example above, the item looks like this: #
ardavis
  • 9,842
  • 12
  • 58
  • 112
1
vote
1 answer

How do I create recurring events with simple form and Ruby? Is ice-cube the best gem for this?

I'm building an events app using Rails and I need to figure out how Users can create Events which will be recurring - daily, weekly, monthly, yearly if they so wish. It's not completely clear how to do this from my research but most roads seem to…
Mike.Whitehead
  • 798
  • 18
  • 52
1
vote
1 answer

Create combinatorial schedule rules with ice_cube gem

Lets say I want a task to be scheduled every 6 hours on one day a week, every 2 weeks. How would I achieve this? I've used hour_of_day to add a specific hour to a weekly rule, but I'd like to avoid having to calculate each specific hour based off of…
1
vote
1 answer

Form Helper not found when using select_recurring for Ice_Cube with Formtastic and ActiveAdmin.

When using the select_recurring form helper for the Ice_Cube gem in Formtastic with ActiveAdmin I receive a unable to find input class for select_recurring error. form do |f| #Debugging f.semantic_errors *f.object.errors.keys …
DogEatDog
  • 2,899
  • 2
  • 36
  • 65
1
vote
4 answers

Monthly schedule that catches ends of the month

I am using the ice_cube gem to create schedules. Making a monthly schedule starting on the 31st misses all months with fewer than 31 days. I'd like to schedule the last day of the month on those months. If my schedule starts on the 30th I want…
Dean Brundage
  • 2,038
  • 18
  • 31
1
vote
1 answer

Saving the recurring events in database if they are edited

I am making a calender app where someone could edit a task. I have a task which has got task name, description and due_date. This task has to be repeated on a quarterly basis. If someone goes to the task of the next quarter and clicks on the task,…
Dev R
  • 1,892
  • 1
  • 25
  • 38
0
votes
2 answers

Ruby Array, Hash, Integer

I am using a gem called "ice_cube" When buliding a schedule i need to pass some integers into the .day() method like so: schedule.add_recurrence_rule IceCube::Rule.weekly(1).day(1,2,3) when i do this directly, it works. However, when i try to pass…
jBeas
  • 926
  • 7
  • 20
0
votes
0 answers

Why do I get a NoMethodError when calling the occurring_at? method on a schedule with the ice_cube gem in Rails 7

In my Rails 7 app, I have installed the ice_cube gem (with the following line in the Gemfile): gem "ice_cube" At the top of my batch model, I have added the following lines: require "ice_cube" require "active_support/time" serialize :schedule,…
Thibaud Clement
  • 6,607
  • 10
  • 50
  • 103
0
votes
1 answer

Recurring select (ice cube gem) in React

I'm trying to migrate my Rails front end to React and need to import the recurring select gem to React. Don't seem to find a stable npm package for this rails gem. How would I import this ruby gem into React through webpacker?
madav
  • 2,918
  • 1
  • 13
  • 17
0
votes
1 answer

Get rotating user for ice_cube recurrence rule

I have an ice_cube recurrence rule, for example, which occurs daily. The objective of this rule is to rotate users on a daily basis. For example, if I have 4 users: John, Peter, Mark, Matthew, and a daily recurrence rule. I also am using delayed…
0
votes
1 answer

Ice Cube How to set a duration for every occurrence

Am using Ice Cube gem https://github.com/seejohnrun/ice_cube to schedule events, I want to make every event to appear in the app every week on monday, and after 6 hours the event title should be marked with a red color. In the doc ice cube has this…
medBouzid
  • 7,484
  • 10
  • 56
  • 86
0
votes
1 answer

Rails finding all user-scheduled events for a particular time?

I've got an app that allows users to schedule tasks to run whenever they desire. (A todo list with recurring items.) I need to somehow re-trigger these events to show up again each time their schedule comes up by updating an attribute on the object…
Rockster160
  • 1,579
  • 1
  • 15
  • 30
0
votes
1 answer

Handling recurring tasks in Rails

I've been trying to build a customised to-do app with a possibility to add recurring tasks. My first approach was to use recurring_select on the front and ice_cube logic in the back. I managed to generate a schedule with all desired occurrences but…
Joanna Gaudyn
  • 597
  • 3
  • 21
0
votes
2 answers

Which instance of an edited iCal event series is the latest

Is there a way to distinguish different instances of a recurring iCal event? I'm using a Rails backend (and the IceCube::Schedule gem) and pulling events from Google Calendar. But in a recurring event (series), one instance of the series is edited…
Qasim
  • 1,554
  • 1
  • 13
  • 22
0
votes
1 answer

splite date with Ice_Cube in rails

I want to create an Api that it get start_time and end_time and the number of month that should split start time and end time and return a collection that i can loop through that and save the data in to the database. for example every week from…
Hussein Ojaghi
  • 2,260
  • 3
  • 23
  • 41