我是Rails新手,并试图遵循http://railstutorial.org指南。 我使用:编辑Gemfile,运行软件包安装或软件包更新后的“Gemfile语法错误”
- 宝石2.0.3
- 捆绑1.3.5
- 轨3.2.13
- 红宝石2.0.0-P195
当我执行bundle update
或bundle install
编辑完Gemfile后,出现以下错误:
roberts-imac-6:first_app bobbaird001$ bundle update
**Gemfile syntax error:**
roberts-imac-6:first_app bobbaird001$ bundle install
**Gemfile syntax error:**
这里是Gemfile中(我已删除了被注释掉的行)
source 'https://rubygems.org'
gem 'rails', '3.2.13'
gem 'sqlite3', '1.3.5'
end
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.2'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.2.3'cdacd
end
gem 'jquery-rails', '2.0.2'
end
我认为jQuery的铁轨是为了在资产组内。 **更新:**或可能不是:http://stackoverflow.com/questions/10730386/why-is-jquery-rails-often-outside-of-the-asset-group –
这似乎是合乎逻辑的。但生成的'Gemfile'在资产组之外。无论如何,':assets'组正在从Rails 4中移除。 – fontno