stylesheet_link_tag 'application' - 参数数量错误
stylesheet_link_tag 'application' - wrong number of arguments
我有一个使用 Slim 的 Rails 4 应用程序:
# application.html.slim
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
抛出异常:
wrong number of arguments (3 for 2)
(in /Users/me/project1/app/assets/stylesheets/foundation-components.sass)
即使我删除了最后一个参数,错误仍然存在。我该如何解决?
# app/assets/stylesheets/foundation-components.sass
@import settings
@import foundation
文件_settings.scss存在,文件foundation.scssc仅在缓存中。
您需要将导入文件放在引号中 @import 'settings';
我有一个使用 Slim 的 Rails 4 应用程序:
# application.html.slim
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
抛出异常:
wrong number of arguments (3 for 2)
(in /Users/me/project1/app/assets/stylesheets/foundation-components.sass)
即使我删除了最后一个参数,错误仍然存在。我该如何解决?
# app/assets/stylesheets/foundation-components.sass
@import settings
@import foundation
文件_settings.scss存在,文件foundation.scssc仅在缓存中。
您需要将导入文件放在引号中 @import 'settings';