You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I use mongodb 1.6.3 + mongoid 2.0.0.beta.20
I have models:
User
include Mongoid::Document
embeds_many :nodes
Node
include Mongoid::Document
include Mongoid::Timestamps
include Mongoid::Taggable
embedded_in :user, :inverse_of => :nodes
And i see this error: Database command 'mapreduce' failed: {"errmsg"=>"ns doesn't exist", "ok"=>0.0} when try: User.first.nodes.create(:node_body => "first", :tags => "tag1, tag2, tag3")
Is this 'mongoid_taggable' bug or my fail?
The text was updated successfully, but these errors were encountered:
I mean its not supporting embedded documents yeth... for now a simple solution will be disable the tag indexer. I will try to get some time to look on how to make it works, for now, do in your Node model:
include Mongoid::Taggable
disabled_tags_index!
it maybe work for now (but you will not have the indexed information, take a look on docs)
Hello! I use mongodb 1.6.3 + mongoid 2.0.0.beta.20
I have models:
User
include Mongoid::Document
embeds_many :nodes
Node
include Mongoid::Document
include Mongoid::Timestamps
include Mongoid::Taggable
embedded_in :user, :inverse_of => :nodes
And i see this error:
Database command 'mapreduce' failed: {"errmsg"=>"ns doesn't exist", "ok"=>0.0}
when try:User.first.nodes.create(:node_body => "first", :tags => "tag1, tag2, tag3")
Is this 'mongoid_taggable' bug or my fail?
The text was updated successfully, but these errors were encountered: