Search Discussions
-
Hello. Is there any chance to change mongoid localize context without changing I18n.locale (I know there is not - https://github.com/mongoid/mongoid/blob/master/lib/mongoid/fields/localized.rb#L63) ...
Josef Šimánek
Mar 5, 2013 at 3:27 pm
Mar 7, 2013 at 12:45 pm -
class Job field :occupation, :type = String field :experience, :type = String end In my api file: get :searches do Cv.search({query: "*#{params[:q]}*"}).map{ |cv| {id: cv.id, text: cv.occupation } } ...
Hyperrjas
Mar 15, 2013 at 5:29 pm
Mar 16, 2013 at 2:49 pm -
Hello guys, I try to find the best indexes for a query and it seems like it only wants to use {_id: 1} Can you help me on this one? The query : Page.where(mobile: true).or({featured: true}, ...
Yannick Schutz
Mar 23, 2013 at 9:54 am
Apr 2, 2013 at 2:08 pm -
Hi, I could not get a full timestamp from mongo, and I didn't find any resolution in forums/docs. Any help is really appreciated !! 1. Here's what the mongo shell gives me for the document { ...
Tommaso Bianco
Mar 13, 2013 at 10:11 pm
Mar 18, 2013 at 3:16 pm -
Hi Guys, I noticed a strange behavior. It might be mongoid or mongodb, I am not sure, but Counting documents is slower than fetching the documents. Here are the queries I fired ...
Rubish gupta
Mar 7, 2013 at 1:35 am
Mar 7, 2013 at 8:45 pm -
When inspecting our documents in mongo console we found out that some of our documents have duplicated fields. E.g. { "_id" : ObjectId("5104607debb4484047c3e176"), "email" : "<span ...
Krismartin
Mar 3, 2013 at 1:50 pm
Mar 4, 2013 at 3:22 am -
irb(main):019:0 a = Admin.first = #<Admin _id: 514b318da61654dd05000002, email: "<span class="m_body_email_addr" title="4f64c9f81bb0d4ee969aaf7b4a5a6f40" [email protected]</span ", encrypted_password ...
Hyperrjas
Mar 22, 2013 at 11:47 am
Mar 22, 2013 at 12:00 pm -
I faced an issue when copying sub documents from one doc to other which have different embeds macros. Please find the recreation at https://gist.github.com/rubish/5189463 I believe the reason for the ...
Rubish gupta
Mar 20, 2013 at 12:21 pm
Mar 21, 2013 at 7:52 pm -
Hello all, I've searched the documentation and this group and I've seen that I can set safe mode per connection in the yaml file and per query via .with(safe: true). Is there a way to enable safe ...
Jonathan Wallace
Mar 20, 2013 at 9:28 pm
Mar 21, 2013 at 7:53 am -
How can I, using mongoid, replicate this command: db.bios.update( { key: 'foobar' }, { $set: { key: 'foobar', title: "My Title" } }, { upsert: true } ) -- --- You received this message because you ...
Tal Atlas
Mar 15, 2013 at 8:39 pm
Mar 16, 2013 at 5:49 pm -
Hi Guys, I'm using mongoid in an ecommerce project and it is been really awesome! In our modelling we created Product and Variant where Variant "embedded_in :product" and Product "embeds_many ...
David Paniz
Mar 7, 2013 at 9:57 pm
Mar 15, 2013 at 8:40 pm -
Exists any gem that's implement transaction for mongoid (http:// docs.mongodb.org/manual/tutorial/perform-two-phase-commits/) ? -- --- You received this message because you are subscribed to the ...
Alan Gomes
Mar 7, 2013 at 8:54 pm
Mar 14, 2013 at 11:12 pm -
2
[mongoid] HABTM relationship, why a document stores same id of associated document multiple times?
I have following models, class Questionnaire When I run following commands on console: As you can see in question object, the same questionnaire id got stored multiple times, but it is not the case ...Saurabh Bongale
Mar 8, 2013 at 12:08 pm
Mar 8, 2013 at 2:24 pm -
Hello. I needed some CRUD for I18n translations in administration for client and I made it possible with moped powered I18n backend. You can build own Mongoid model around that and use how you need ...
Josef Šimánek
Mar 7, 2013 at 12:53 pm
Mar 7, 2013 at 6:19 pm -
I would like a counter cache on my model *search.rb. *to get the number of searches for each user or a guest. I have added *include Mongoid::CounterCache *but I get on my rspec *uninitialized ...
Hyperrjas
Mar 22, 2013 at 5:08 pm
Mar 22, 2013 at 5:30 pm -
There seems to be bug in mongoid 2.6.0, if the id of a belongs to relation is changed the accessor still returns old references if it has already been used. Shouldn't the cache for the accessor clear ...
Rubish gupta
Mar 21, 2013 at 1:32 am
Mar 21, 2013 at 3:25 am -
HI am creating a test application using following versions of rails, ruby and mongoid. rails 4 beta ruby 2.0.0 mongoid 3.1.2 My GemFile looks like this gem 'rails', '4.0.0.beta1' ruby '2.0.0' gem ...
Zeeshan Abid
Mar 20, 2013 at 9:28 pm
Mar 20, 2013 at 11:08 pm -
Hi guys, I've seen that Mongoid::Observer was removed from master recently [1]. Is it being moved into a gem or removed completely? I guess this is related with the decision of extracting Observers ...
Mauro Pompilio
Mar 18, 2013 at 5:08 pm
Mar 18, 2013 at 5:29 pm -
*Info: this is a crosspost from http://stackoverflow.com/q/15354936/745359 * I've created a Rails Mountable App and added 'mongoid' and 'rspec' gem's. If I try to run my specs now I get the following ...
Moritz Winter
Mar 12, 2013 at 3:26 pm
Mar 14, 2013 at 8:16 pm -
Hey guys, I'm struggling to get these relationships to work. I have the following class FlowContainer class FlowContainer include Mongoid::Document has_one :production_flow, class_name: Flow ...
Niels Stevens
Mar 14, 2013 at 6:38 pm
Mar 14, 2013 at 7:44 pm -
I have the following map reduce query which runs on the background and seem to work now: Post.all.map_reduce(map, reduce).out(replace: "mr_user_category_post").each On a separate page, I'd like to ...
Rey Bumalay
Mar 11, 2013 at 11:54 am
Mar 11, 2013 at 1:32 pm -
I created a default scope as follows and it appears that it only is evaluated at class load time instead of always at query time as the documentation suggests ( ...
Steve Rodriguez
Mar 20, 2013 at 9:28 pm
Mar 20, 2013 at 9:28 pm -
I faced an issue when copying sub documents from one doc to other which have different embeds macros. Please find the recreation at https://gist.github.com/rubish/5189463 I believe the reason for the ...
Rubish Gupta
Mar 18, 2013 at 6:28 pm
Mar 18, 2013 at 6:28 pm -
Any news on em-moped? :) I had been using em-mongo, but see it cannot connect to a replica set. As a compromise in the meantime, I am testing moped + EM Synchrony connection pool, and just wanted to ...
Robj
Mar 15, 2013 at 12:38 am
Mar 15, 2013 at 12:38 am -
So i have a model "Entry" with a geospatial field location, and Im trying to find all entries within a maxDistance. But no matter what I do i can get mongoid to return the expected results. Here is ...
Joe Frankle
Mar 1, 2013 at 3:36 pm
Mar 1, 2013 at 3:36 pm -
Hi all, I have next classes class A include Mongoid::Document has_many :bs validates :bs, presence: true end class B include Mongoid::Document belongs_to :a end a = A.new a.valid? #false a.bs << ...
E Surzhko
Mar 1, 2013 at 10:26 am
Mar 1, 2013 at 10:26 am
Group Overview
group | mongoid |
categories | mongodb, rubyonrails |
discussions | 26 |
posts | 84 |
users | 35 |
website | mongoid.org |
irc | #mongoid |
35 users for March 2013
Archives
- March 2014 (13)
- February 2014 (13)
- January 2014 (42)
- December 2013 (14)
- November 2013 (20)
- October 2013 (20)
- September 2013 (11)
- August 2013 (19)
- July 2013 (23)
- June 2013 (19)
- May 2013 (29)
- April 2013 (43)
- March 2013 (84)
- February 2013 (129)
- January 2013 (125)
- December 2012 (106)
- November 2012 (153)
- October 2012 (207)
- September 2012 (142)
- August 2012 (179)
- July 2012 (334)
- June 2012 (251)
- May 2012 (155)
- April 2012 (192)
- March 2012 (160)
- February 2012 (31)