Meltemi
Meltemi

Reputation: 38359

Ruby/Rails way to enable resource availability on certain dates

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

Answers (1)

Reactormonk
Reactormonk

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

Related Questions