2
일정 초기화되지 않은 제공하지만이 오류 출력 :Mongoid 내가 mongoid를 사용하기 위해 노력하고있어 몽고
여기uninitialized constant 'Mongo'
내 코드입니다 :
require "mongoid"
Mongoid.configure do |config|
config.master = Mongo::Connection.new("localhost",27017).db("arthist")
end
class Artist
include Mongoid::Document
field :name, type: String
end
a = Artist.create(name: "hoge")
당신이 어떤 생각을 가지고 있습니까
를?
어떤 몽고이즘 버전을 사용하고 있습니까? –