0
나는 this 튜토리얼을 따르고 있지만 문제가 발생했습니다. 나는 다음과 보석을 사용하고Ruby/Mongo : 초기화되지 않은 상수 MongoClient 오류가 발생하는 이유는 무엇입니까?
server.rb:10:in `<main>': uninitialized constant Mongo::MongoClient (NameError)
: 나는 오류가 계속
Using bson 4.1.1
Using bson_ext 1.5.1
Using daemons 1.2.3
Using eventmachine 1.2.0.1
Using rack 1.6.4
Using tilt 2.0.5
Using bundler 1.12.5
Using mongo 2.2.5
Using rack-protection 1.5.3
Using thin 1.7.0
Using sinatra 1.4.7
내 코드 : 나는 몽고 보석을 요구하고 몽고 클래스를 포함 시켰습니다
require 'rubygems'
require 'bundler/setup'
require 'sinatra'
require 'json'
require 'mongo'
include Mongo
mongo_client = MongoClient.new("localhost", 27017)
합니다. MongoClient
이 (가) 인식되지 않는 이유는 무엇입니까? 오류가 발생하는 이유는 무엇입니까?