<% first_days = (1..12).map do |index| Date.new(@year, index, 1).beginning_of_month end %>
<% first_days.each do |first_day| %>
<%= render 'month', first_day: first_day, events: @events %>
<% end %>