开发者

Ruby/Rails way to enable resource availability on certain dates

开发者 https://www.devze.com 2023-01-26 08:59 出处:网络
What tools should I be exploring in Ruby/Rails to store the dates or \'availability\' of a Model object?

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. 开发者_如何学Go

How best to approach this in Ruby/Rails environment? Any 'magic' gems I should be looking into?


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).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号