Forum: Ruby on Rails Event Calendar in Rails

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Lyn W. (Guest)
on 2009-05-31 22:15
(Received via mailing list)

I'm looking to develop a dynamic event calendar for a rails
application. I found some nifty little embeddable calendars in jQuery
and Moo Tools that use Json feeds but they seem to conflict with some
features that I have already developed using prototype.

Is there a rails plugin that I can work with or an embeddable
prototype solution that I can feed with xml or json?

If anybody has any advice or tips please let me know.

Thanks in advance.
nodoubtarockstar (Guest)
on 2009-06-01 11:15
(Received via mailing list)
Try calendar_helper Rails plugin. I'm using this in my events-based
app right now and love it! It adds appropriate classes to your table
cells and allows you to add your own classes as well, if you'd rather.
Plus: No javascript necessary. :)

In my app, I display the event type, the comedian name with a link to
edit, ticket price and showtime:


@year = params[:year].blank? ? : params[:year].to_i
@month = params[:month].blank? ? : params
@events = Event.all


<%= calendar({:year => @year, :month => @month}) do |d|
  cell_text = "#{d.mday}<br />"
  cell_attrs = {:class => 'day'}
  @events.each do |e|
    if == d.mday
      cell_text << link_to ( e.comedian.full_name, :action => 'edit',
=> e ) << "<br />"
      cell_text << e.event_type << "<br />"
      cell_text << e.ticket_price << "<br />"
      cell_text << << "<br />"
      cell_attrs[:class] = 'event_date'
  [cell_text, cell_attrs]
Lyn W. (Guest)
on 2009-06-01 18:46
(Received via mailing list)
Thanks so much.

This is the perfect solution.

On Jun 1, 5:47 am, nodoubtarockstar <removed_email_address@domain.invalid>
Rick D. (Guest)
on 2009-06-01 21:08
(Received via mailing list)
On Mon, Jun 1, 2009 at 10:45 AM, lyntaff <removed_email_address@domain.invalid> 
> Thanks so much.
> This is the perfect solution.

Note that the latest version of this is on github

Rick DeNatale

This topic is locked and can not be replied to.