elevation / event_calendar

Show multiple, overlapping events across calendar days and rows. Rails plugin.
http://dev.elevationblog.com/2009/7/23/event-calendar-rails-plugin
MIT License
948 stars 212 forks source link

Events disappearing when using :first_day_of_week => 1 #46

Open kennethdevik opened 13 years ago

kennethdevik commented 13 years ago

The title says it all I think. Just started a new rails project with event_calendar, and suddenly all my events disappeared from the calendar view. I tracked it down to the :first_day_of_week => 1 setting I added in event_calendar_opts. I'm also using the use_all_day feature, if that might have something to do with this problem.

olivierbuffon commented 13 years ago

I had the same problem, I've solved it by adding those lines in my model and my controller (check the readme) :

Controller: @first_day_of_week = 1 @event_strips = Event.event_strips_for_month(@shown_month, @first_day_of_week)

Helper/View calendar options:

:first_day_of_week => @first_day_of_week

Now it works fine !