0
我有格式的表有日期時間列每個日期的哈希/陣列:如何創建的時間給出一個日期
2012-10-30 08:00:00 UTC
我怎麼能創建一個數組或哈希那會按日期收集時間:
2012-10-30
8:00
9:00
13:00
2012-11-02
8:00
9:00
最後,我想有網絡輸出這樣的:
October 30, 2012
8:00 <reserve button>
9:00 <reserve button>
13:00 <reserve button>
November 2, 2012
8:00 <reserve button>
9:00 <reserve button>
我可以在圖如果我能正確設置數組,請將html部分除外。
我想你說什麼,我得到這個錯誤:類型錯誤({}不是符號)任何想法? –
對不起,'inject'後面有一個額外的'.each',它應該可以像更新一樣工作 – PinnyM
那就是訣竅!謝謝。 –