Created
September 26, 2020 11:47
-
-
Save tbbooher/065ce84c34528ef2847e3b5f6758c27a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%tbody | |
- date_range.each_slice(7) do |week| | |
%tr | |
- week.each do |day| | |
= content_tag :td, class: calendar.td_classes_for(day) do | |
= block.call day, sorted_events.fetch(day, []) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment