我试图做一个 slim 的简单 table
table class="table table-striped"
thead
tr
th username
它工作正常,但是当我尝试添加其他内容时,出现了错误的缩进,例如,这段代码对我不起作用
table class="table table-striped"
thead
tr
th username
th provider
或者
table class="table table-striped"
thead
tr
th username
tbody
tr
td test
有谁能够帮我?
最佳答案
在没有看到原始资源的情况下,我只能猜测缩进级别相同的后续行中的your text editor inserted tabs instead of spaces。确保所有内容都是空格?
关于ruby-on-rails - Rails Slim语法错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10699445/