簡體   English   中英

使用Ruby on Rails設置Sass

[英]Setting up Sass using Ruby on Rails

我在Windows機器上安裝了無禮,指南針,捆扎機,紅寶石和滑軌。

我一直在按照https://github.com/twbs/bootstrap-sass上的步驟進行操作

一種。 Ruby on Rails

我已經在Gemfile中添加了寶石...

source 'https://rubygems.org'

gemspec

# Compass for the dummy app
gem 'compass', require: false

group :development do
  gem 'byebug', platform: :mri_21, require: false
end

# Adding bootstrap gem
gem 'bootstrap-sass', '~> 3.2.0'
gem 'sass-rails', '>= 3.2'
gem 'autoprefixer-rails'

當我運行bundle install命令時,我收到:

➤  bundle install

Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Gemfile syntax error compile error
on line 6: syntax error, unexpected ':', expecting $end
gem 'compass', require: false

                   ^

如何解決此問題?

您正在使用新key: value具有Ruby 1.9中引入的語法。 您無法在Ruby 1.8中做到這一點。 Ruby 1.8也已棄用 ,您應該停止使用它。 您將在該語言的無效版本中學習錯誤的東西。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM