2016-03-03 225 views
-1

我是比較新的回報率,在安裝時的Gemfile的我收到以下錯誤信息:Ruby on Rails的捆綁安裝錯誤

!] 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 

回答

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