gemfile语法错误:bundle install

时间:2014-05-15 17:21:57

标签: ruby-on-rails bundle-install

我不断收到以下错误并尝试了不同的变体。不胜感激任何建议!

$ bundle install
Gemfile syntax error on line 16: syntax error, unexpected tIDENTIFIER, expecting
end-of-input
gem 'sqlite3'           group :development :test
                                ^
$ bundle install
Gemfile syntax error on line 16: syntax error, unexpected tIDENTIFIER, expecting
end-of-input
gem 'sqlite3'           group: :development, :test
                                 ^
$ bundle install
Gemfile syntax error on line 16: syntax error, unexpected tIDENTIFIER, expecting
end-of-input
gem 'sqlite3'           group :development, :test
                                 ^

$ bundle install
Gemfile syntax error on line 16: syntax error, unexpected tIDENTIFIER, expecting
end-of-input
gem 'sqlite3'           group :development, :test do 
                                 ^

1 个答案:

答案 0 :(得分:1)

正确的语法:

group :development, :test do
   gem 'sqlite3'
end

只是建议您在生产数据库中进行测试和开发。