嘿,我正在尝试学习rails并遵循rails教程.我正在使用SCSS向应用程序样式表添加一些元素,这就是我要添加的内容 /* miscellaneous */ .debug_dump { clear: both; float: left; width: 100%; margin-top: 45px; @incl
/* miscellaneous */ .debug_dump { clear: both; float: left; width: 100%; margin-top: 45px; @include box_sizing; } }
但是当我在浏览器中查看它时,我收到此错误
Mixin box-sizing is missing argument $boxmodel. (in /Users/<mynamehere>/workspace/sample_app/app/assets/stylesheets/custom.css.scss:110) <html> <head> <title><%= full_title(yield(:title)) %></title> <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %> <%= javascript_include_tag "application", "data-turbolinks-track" => true %> <%= csrf_meta_tags %> Rails.root: /Users/<mynamehere>/workspace/sample_app
任何帮助将非常感激.如果您需要查看其他内容,请链接到我的github
错误说,你需要一个box_sizing的参数.所以试试@include box-sizing(border-box);.