【发布时间】:2016-05-19 10:39:03
【问题描述】:
rails 3.2
我是 slim 新手,我必须使用正在使用它的应用程序。阅读一些文档,我看到使用类似的东西:
.class
翻译为:
<div class="class"></div>
在我继承的代码中,在 .html.slim 文件中,我有:
.form-section.customer_info
当我查看样式表文件夹时,我找不到 customer_info,但我可以找到 form-section。
难道我不能在其中一个样式表中找到 customer_info 吗?
【问题讨论】:
-
您尝试调查为什么 customer_info 不在样式表文件夹中?也许那个类用于一些 js 编码?
-
或者由于其他原因它已经从样式表中删除了......可能有一些重构,或者计划使用,然后永远不会被使用,或者,或者,或者...... :)
-
我在 .coffee 文件中找到了这个:$('.form-section.customer_info').html html
标签: ruby-on-rails ruby-on-rails-3.2 slim-lang