views:

1949

answers:

3

I am building a calendaring application in ruby on rails. I am using my own schema for storing events, but I don't know how to display events in calendar, and also how to add a calendar in my application.

Will I have to write code to display calendar or can I use any plugin to display calendar.

+3  A: 

I think the calendar_helper plugin is what you want. It provides a calendar method to your views, which can be called to generate a month-view calendar in HTML.

You can pass it a block which builds the contents of each day's cell, which is where you would want to do whatever your event schema requires to pull in the day's events.

Matt Gillooly
A: 

There's a little list of candidates here.

The plugin on the page itself seems to offer some AJAX goodness, if that's something you're interested in.

Mike Woodhouse
+1  A: 

The EventCalendar plugin was created for this very reason. Easily show multiple, overlapping events across calendar days and rows.

http://github.com/elevation/event_calendar

Screenshot(s) at: http://dev.elevationblog.com/2009/7/23/event-calendar-rails-plugin

Jeff Schuil