ref: master
app/views/events/_month.html.erb
<% calendar.first(7).each do |day,event| %> <% calendar.in_groups_of(7).each do |week| %><%= show_day_of_week(day, abbreviated) %> <% end %><% week.each do |date, has_events, this_month| %> <% end %><%= has_events ? link_to_remote( date.day, :url => {:action => 'events_by_day', :year => date.year, :month => date.month, :day => date.day, :category_id => @category_id}, :update => 'events-of-the-day', :loading => "jQuery('#events-of-the-day').addClass('loading')", :complete => "jQuery('#events-of-the-day').removeClass('loading')" ) : date.day.to_s %> <% end %>