gpt4 book ai didi

ruby-on-rails - Gemfile语法错误

转载 作者:行者123 更新时间:2023-12-04 06:15:23 26 4
gpt4 key购买 nike

我收到以下错误:Gemfile语法错误。

这是我的代码:

source 'https://rubygems.org'

gem 'rails', '3.2.1'

gem 'devise'

# Bundle bootstrap gems
group :development do
gem 'thin'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3'


# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'

# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer'

gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'

# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'

# To use Jbuilder templates for JSON
# gem 'jbuilder'

# Use unicorn as the web server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'

最佳答案

您在end中缺少dogroup :development。在end之后的行上添加gem 'sqlite3'语句。

您可以运行ruby -c Gemfile来检查语法(这是常规的Ruby代码),它可以使您了解错误的位置。

关于ruby-on-rails - Gemfile语法错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15374205/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com