how to customize the table builder plugin for a week calendar?

后端 未结 1 892
我寻月下人不归
我寻月下人不归 2020-12-10 09:54

I\'m using a table builder

https://github.com/p8/table_builder

for a calendar that I found in this Rails cast:

相关标签:
1条回答
  • 2020-12-10 10:14

    Set first_day_of_week: 1, like this:

    <%= calendar_for @statuses, year: @date.year, month: @date.month, first_day_of_week: 1 do |calendar| %>
    

    and adjust calendar.head accordingly:

    <%= calendar.head('Monday', 'Tuesday'...

    0 讨论(0)
提交回复
热议问题