我正在设置 Foundation Zurb 选项卡。
它看起来像这样:
- @items.group_by(&:calendar).each do |calendar, items|
%section
- # displaying tab name, which is Calendar name
- # displaying tab content, which is a table of Items for that Calendar
我希望第一个选项卡是%section.active
,所有其他选项卡应该只是%section
(不活动)。
最好的方法是什么?