问题:
我有一个Rails 4.0.10
要breakpoint
用于媒体查询的基本项目。
我的宝石文件:
source 'https://rubygems.org'
gem 'rails', '4.0.10'
gem 'sqlite3'
gem 'httparty'
gem 'requirejs-rails'
gem "github_api"
gem "breakpoint", "~>2.4.0"
gem 'uglifier', '>= 1.3.0'
gem 'jquery-rails'
gem 'jbuilder', '~> 1.2'
group :doc do
gem 'sdoc', require: false
end
当我在我的 sass 样式表中需要断点时,它会抛出:
Sass::SyntaxError in Stats#index
Showing /home/action/workspace/sofapp/sofa/app/views/layouts/application.html.erb where line #7 raised:
File to import not found or unreadable: breakpoint.
Load paths:
/home/action/workspace/sofapp/sofa/app/assets/fonts
/home/action/workspace/sofapp/sofa/app/assets/images
/home/action/workspace/sofapp/sofa/app/assets/javascripts
/home/action/workspace/sofapp/sofa/app/assets/stylesheets
/home/action/workspace/sofapp/sofa/vendor/assets/javascripts
/home/action/workspace/sofapp/sofa/vendor/assets/stylesheets
/home/action/.rvm/gems/ruby-2.0.0-p247/gems/jquery-rails-3.1.2/vendor/assets/javascripts
/home/action/.rvm/gems/ruby-2.0.0-p247/gems/requirejs-rails-0.9.5/vendor/assets/javascripts
/home/action/.rvm/gems/ruby-2.0.0-p247/gems/breakpoint-2.4.6/lib/stylesheets
(in /home/action/workspace/sofapp/sofa/app/assets/stylesheets/main.scss:5)
从错误中可以看出,Sass 找不到加载断点的正确路径。我查看了最后一条路径,发现该目录/home/action/.rvm/gems/ruby-2.0.0-p247/gems/breakpoint-2.4.6/lib/stylesheets
不存在,而是我们有/home/action/.rvm/gems/ruby-2.0.0-p247/gems/breakpoint-2.4.6/stylesheets
.
问题:
我应该配置资产管道以包含断点的正确路径还是存在其他问题?