Skip to content

Instantly share code, notes, and snippets.

@tbbooher
Created September 26, 2020 11:47
Show Gist options
  • Save tbbooher/065ce84c34528ef2847e3b5f6758c27a to your computer and use it in GitHub Desktop.
Save tbbooher/065ce84c34528ef2847e3b5f6758c27a to your computer and use it in GitHub Desktop.
%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