Sea*_*yar 1 ruby-on-rails twitter-bootstrap
我将这行添加到gem文件中:
gem 'bootstrap-sass' '3.3.2.0'
Run Code Online (Sandbox Code Playgroud)
然后我得到了:
$ bundle install
Fetching gem metadata from https://rubygems.org/...........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Could not find gem 'bootstrap-sass3.3.2.0 (>= 0) ruby' in the gems available on this machine.
Run Code Online (Sandbox Code Playgroud)
所以我从rubygems.org下载并安装它:
$ gem install bootstrap-sass -v 3.3.2.0
Fetching: autoprefixer-rails-5.1.11.gem (100%)
Successfully installed autoprefixer-rails-5.1.11
Fetching: bootstrap-sass-3.3.2.0.gem (100%)
Successfully installed bootstrap-sass-3.3.2.0
2 gems installed
Run Code Online (Sandbox Code Playgroud)
然后尝试:
$bundle install
or/and
$bundle update
Run Code Online (Sandbox Code Playgroud)
仍然收到消息:
Could not find gem 'bootstrap-sass3.3.2.0 (>= 0) ruby' in the gems available on this machine.
Run Code Online (Sandbox Code Playgroud)
我该怎么办?
你忘了宝石名字和版本之间的逗号.
gem 'bootstrap-sass', '3.3.2.0'
Run Code Online (Sandbox Code Playgroud)
请参阅文档,您需要指定分隔的可选参数,.
| 归档时间: |
|
| 查看次数: |
478 次 |
| 最近记录: |