Calendars in Rails, redux

Post by: on February 19, 2011 | 0 Comment

I ended up making a few decisions. First, I figured out how to refactor the appointments and the events into a single Event class that contains many time Slot objects.

Because I didn’t need the day-spanning feature in event-calendar, I decided to kill it and go with a simpler solution based on the Railscasts code I mentioned previously. What that gives me is a nice bare Calendar framework that I can customize all I want without breaking any of the magic that may be hiding under the covers. I hate to end up in Not Invented Here territory, but I think in the end it’ll make me more agile if I really understand the calendaring code. I suspect a lot of my future work will be in that area.

So now I have a calendar grid displaying with time slots listed in it. I need to build a Day View for scheduling hour-by-hour. I also need to finish ripping out he appointment code and replacing it with the Event classes.

I updated to Rails 3.0.4 as well.