rails slim语法错误

时间:2012-05-22 09:38:12

标签: ruby-on-rails slim-lang

我尝试用苗条制作一个简单的表

table class="table table-striped"
  thead
    tr
      th username

它工作正常但是当我尝试添加另一个或者tbody时我得到一个错误格式缩进,例如这段代码对我不起作用

table class="table table-striped"
  thead
    tr
      th username
      th provider

table class="table table-striped"
  thead
    tr
      th username
  tbody
    tr
      td test

任何人都可以帮助我吗?

1 个答案:

答案 0 :(得分:9)

在没有看到原始来源的情况下,我只能猜测后续行中的your text editor inserted tabs instead of spaces是否处于相同的缩进级别。确保一切都是空格?