Questions tagged «gemfile»




14
mysql2 gem的Gem :: LoadError,但是它已经在Gemfile中
Gem::LoadError Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile 加载以下文件时发生此错误: active_record/base 这是我在运行Rails服务器时遇到的错误。 The mysql2 gem has been added to the Gemfile as well. 我已经完成了bundle install,并尝试重新启动服务器,但仍然收到错误消息。

9
捆绑安装返回“找不到Gemfile”
我是Rails的新手,目前正在阅读指南。该指南指出: 使用文本编辑器使用清单2.1的内容更新Bundler所需的Gemfile。 source 'https://rubygems.org' gem 'rails', '3.2.3' group :development do gem 'sqlite3', '1.3.5' end # Gems used only for assets and not required # in production environments by default. group :assets do gem 'sass-rails', '3.2.4' gem 'coffee-rails', '3.2.2' gem 'uglifier', '1.2.3' end gem 'jquery-rails', '2.0.0' group :production do gem 'pg', …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.