0
我正在嘗試使用tab_up和tab_down haml-helper。我的理解是,在tab_up後,下一行應該縮進。HAML-helpers(tab_up)不工作
這HAML代碼...
%h1 foo
- tab_up
%p bar
- tab_down
%strong baz
應該產生這個網站...
<h1>foo</h1>
<p>bar</p>
<strong>baz</strong>
但對我來說它產生...
<h1>foo</h1>
<p>bar</p>
<strong>baz</strong>
更改HAML ...
%h1 foo
= tab_up
%p bar
= tab_down
%strong baz
導致...
<h1>foo</h1>
1
<p>bar</p>
0
<strong>baz</strong>
如此看來,選項卡的計數正確地運行,但在創建輸出時,他們沒有考慮。其他haml-helpers運行良好。使用tab_up和tab_down時,我是否需要考慮其他因素?
我使用 的Rails 3.2.8, 紅寶石1.9.2, Windows7的
我有同樣的問題。你能解決這個問題嗎? – Dean