Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 4 在引导Sass项目中,Sass混合不可用_Ruby On Rails 4_Sass_Twitter Bootstrap 3_Bootstrap Sass - Fatal编程技术网

Ruby on rails 4 在引导Sass项目中,Sass混合不可用

Ruby on rails 4 在引导Sass项目中,Sass混合不可用,ruby-on-rails-4,sass,twitter-bootstrap-3,bootstrap-sass,Ruby On Rails 4,Sass,Twitter Bootstrap 3,Bootstrap Sass,我有一个Rails 4项目,带有bootstrap sass,像border radius(3px)这样的混音无法识别。我不确定我做错了什么,但以下是我认为相关的文件部分: // myfile.css.scss @import "bootstrap"; #hotel-form { display: none; border: 1px gray solid; padding: 1em; margin-top: 2em; @include border-radius(3px);

我有一个Rails 4项目,带有
bootstrap sass
,像
border radius(3px)
这样的混音无法识别。我不确定我做错了什么,但以下是我认为相关的文件部分:

// myfile.css.scss
@import "bootstrap";

#hotel-form {
  display: none;
  border: 1px gray solid;
  padding: 1em;
  margin-top: 2em;
  @include border-radius(3px);
}
在上面的例子中,我不需要导入bootstrap,但无论如何,我都是为了让
边界半径
mixin被识别出来

# Gemfile
... lots of other stuff
gem 'bootstrap-sass', github: 'thomas-mcdonald/bootstrap-sass'
... and more other stuff

// application.css
*= require_self
*= require_tree .
我不知道是不是
application.css
出了问题。我从CDN获得如下引导:

-# application.html.haml

= stylesheet_link_tag "//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"
= javascript_include_tag "//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"
除了在我的开发机器上安装bootstrap之外,我已经尝试了各种不同的组合,但毫无乐趣。欢迎指点


谢谢

没有边界半径混合?啊啊啊啊。在引导3中删除。嗯。所以我可以自己写了。唉,使用现有的图书馆?指南针对我来说很重。我知道缓存可以清除其中的一部分,但每个新客户机都会获取我的Compass增强样式表,如果我使用Mixin,它通常相当大。