Schedule Assignment in Rails?

I have a simple application with models of clients and appointments, the system administrator can create a client and create appointments for this particular client, is there a Rails plugin that handles scheduling to ensure that no two meetings overlap? those. no two appointments at a time.

And the plus will be if I can configure more than one schedule, i.e. there are 2 instructors in the store for classes, when choosing a destination, we can choose which instructor, etc.

What is the best way to do this?

thank

+3
source share
2 answers
def is conflicting    
    if(appointemnt1_start < appointment2_end && appointment2.start < appointment1.end)
      return true 
    end
end
+2
source

, . . B A, X ( ), .

0

Source: https://habr.com/ru/post/1757482/


All Articles