2016-08-20 3 views
1

에 의해 정렬 된 목록의 시작 I 루프 어떻게 ... 그것은 예상대로 <code>01</code>에서 시작, 나는이 솔루션을 발견 나는 레일 애플 리케이션 일하고 01

.container 
     .row 
     .col-xs-12.col-sm-12 
      h1.text-gray Tutorials 
      br 
     .col-xs-10.col-sm-5.index-background 
     - @tutos.each do |tuto| 
      ol.h4.text-white 
       li 
       h4.text-white = link_to tuto.title, tuto_path(tuto) 
tuto 이상을 만들 수 있습니다

ol { 
list-style-type: decimal-leading-zero; 
} 

하지만 모든 줄이 01로 렌더링됩니다.

내가 무엇을 놓쳤을까요?

답변

0

ol은 :

.container 
    .row 
    .col-xs-12.col-sm-12 
     h1.text-gray Tutorials 
     br 
    .col-xs-10.col-sm-5.index-background 
     ol.h4.text-white 
     - @tutos.each do |tuto| 
     li 
      h4.text-white = link_to tuto.title, tuto_path(tuto) 
위에 그것을 조금 이동, 적절한 장소에 없었다