Ruby on Rails Bundle安装错误

时间:2016-03-03 07:50:26

标签: ruby-on-rails-3 gemfile

我对RoR比较新,在安装Gemfile时我收到以下错误信息:

!] There was an error parsing `Gemfile`: syntax error, unexpected end-of-input, expecting keyword_end. Bundler cannot continue.

#  from /Users/moof/Documents/workspace/sample/top_app/Gemfile:48
#  -------------------------------------------
#  
>  
#  -------------------------------------------

我的Gemfille看起来像这样:

source 'https://rubygems.org'

gem 'rails', '4.2.3'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc


group :development, :test do

gem 'byebug'            
  gem 'sqlite3'                         
  gem 'web-console', '~> 2.0.0.beta4'
  gem 'spring'              

group :development do 
  gem 'pg'                      
  gem 'rails_12factor' 

end

1 个答案:

答案 0 :(得分:0)

你有2个街区和一个房屋:

group :development, :test do

gem 'byebug'            
  gem 'sqlite3'                         
  gem 'web-console', '~> 2.0.0.beta4'
  gem 'spring'              

group :development do 
  gem 'pg'                      
  gem 'rails_12factor' 

end

试试这个:

group :development, :test do

gem 'byebug'            
  gem 'sqlite3'                         
  gem 'web-console', '~> 2.0.0.beta4'
  gem 'spring'
end              

group :development do 
  gem 'pg'                      
  gem 'rails_12factor' 

end