Reputation: 38359
What tools should I be exploring in Ruby/Rails to store the dates or 'availability' of a Model object?
For example, say in my Clown Booking Service I want to mark each of my many clowns with its availability (and pricing) for certain times of the day and certain days of the week...including additional anomalies for holidays.
How best to approach this in Ruby/Rails environment? Any 'magic' gems I should be looking into?
Upvotes: 4
Views: 150
Reputation: 21730
Sounds like you want some ical
or a similar date format serialized into a column, see here. There are a bunch of ical libs out there. Probably there is a better appointment format, but I don't know it (yet).
Upvotes: 1