当我输入一个 require 语句来加载 nokogiri gem 时,我收到一个加载错误:没有要加载的文件 -- nokogiri
要求:
require 'rubygems'
require 'nokogiri'
宝石文件:
source 'https://rubygems.org'
source 'http://gems.github.com'
gem 'rails', '3.2.3'
gem 'rubygems'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'mysql2'
gem 'json'
# HTML Parser
gem 'nokogiri'
# 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', :platform => :ruby
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
我也在使用 ruby v1.8