similar to: Mongo adapter

Displaying 20 results from an estimated 1000 matches similar to: "Mongo adapter"

2011 Aug 05
5
Best Mongo Framework to work with Rails
Hi all, Wanted to hear your opinions about the currently best option for mongo with Rails. Thank you all in advance, Vasco Andrade e Silva -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2011 Mar 16
19
Uninitialized constant Files::Magick -still around
Hi there, I''m solving the problem about the plugin Magick. In my app in Gemfile I''ve follwoing: require ''rubygems'' require ''mongo'' require ''RMagick'' include Magick and in a model Files: class Files def self.save(upload) ... img = Magick::Image.read(''public/data/nature6.jpg'').first end end
2011 Jul 04
2
when use mongoid , Model.count can't work.
Hi, when i use mongoid to get the count of model named "User", I met a error : irb(main):001:0> User.count ArgumentError: wrong number of arguments (1 for 0) from /var/lib/gems/1.8/gems/mongoid-2.0.2/lib/mongoid/ cursor.rb:37:in `count'' from /var/lib/gems/1.8/gems/mongoid-2.0.2/lib/mongoid/ cursor.rb:37:in `send'' from
2010 Feb 04
6
Fastes database server for...
Hi, I''m currently building a small rails application that needs to store web traffic information. Similar to google analytics and clicky. (but simpler) It needs to store refer domains and visitors. Integration goes through a small javascript snippet. My question is: What database server is the fastest and should I use for this app? I was thinking about SQLlite. Thanks for your time,
2013 Feb 28
1
Mongo backend for userdb and passdb
Hi, I was wondering if any work had been made (out of tree) or has been planned for a mongo driver? If not is it something that would be of any interest for being included? Regards, Damien
2012 Jan 22
3
Using Mongoid with ActiveRecord
I''m trying to use mongodb and postgresql simultaneously with Rails 3.1. I believe I have everything set up correctly. What I''m interested in knowing is how to get rails to flip-flop back- and-forth between mongoid and activerecord. For example, if I want to generate an ActiveRecord model after using mongoid, rails automatically defaults to the Mongoid gem. > rails g model
2011 Mar 04
7
Example of work with mongo
Hi there, I''m newbie here and I have a problem with the connection with MongoDB. The connection among Rails and MongoDB works, but I don''t know, how to print only one "column" from document. If I''m trying following a part of code: puts db["testCollection"].find_one().inspect So I''will get the entire structure of BSON, as:
2010 Jan 25
3
Dynamic attributes!
I want to create a general model ''Product'' that I will be able to store several attributes in it. For example the attributes :id :name :description are pretty stantard. So each product will have this attributes. However, I wanted to know if it is possible to create dynamic attributes. In the case of a cell phone device I might want to store the IMEI of the phone, this
2012 Jun 12
2
how to connect rails app using monodb
hi all i ve installed monodb this is the first time ive installed it and don''t have any idea how to use it. previously ive used MYSQL for my apps. now i want to use monodb . can any one help me out how to use monodb . does it have any interface just as MYSQL. as there is no yml file needed how do i connect my app thanks in advance -- You received this message because you
2011 Dec 06
1
mongodb topic in rails
Hi I use mongoid for rails application and I try to do @users = User.where("first_name = ? OR last_name = ? OR type = ?", firstname, lastname, usertype) but I am getting error but when i put: @users = User.where(:first_name => firstname, :last_name => lastname, :type => usertype).all the program run successfully but i need OR to execute in mongodb Also I need sql LIKE to
2014 Oct 05
2
Using Rtools with gcc 4.8.3
I started working on some R bindings for mongo-c-driver [1]. The C library compiles fine on Ubuntu Trusty (gcc 4.8.2) and osx (clang), however on my windows machine (gcc 4.6.3 from Rtools 3.1) it fails with: 'INIT_ONCE_STATIC_INIT' undeclared. Google suggests that this might be a problem in older versions of mingw-w64. So I grabbed a copy of mingw-w64 version 4.8.3 and indeed, here the
2011 May 04
5
rails mongoid
I have a strange problem. Suppose I have a user model with only name field. I can add a field with value by creating an instance in mongodb rails environment. Example: class User include Mongoid::Document field :name end Now in rails console, If you do user = User.new user[:name] = "xxxx" user[:firstname] = "yyyy" user.save The record gets created with name and
2012 Oct 21
2
Razor Mongodb related questions
I''m new to Razor and have two questions related to Razor Mongodb: 1. Is there available Razor object relationship diagram that describes relationships between Razor slices? 2. Does Razor make use of Mongo''s JSON doc store features like automatic secondary indexing on all JSON attributes? -- You received this message because you are subscribed to the Google Groups
2013 Oct 23
2
how is mongoid syntax implemented ?
In mongoid, a ORM mapped database object is like below. The part "type: String" seems to me to not fit into any standard ruby syntax and I was curious how does mongoid implement that ? class Step include Mongoid::Document field :Label, type: String field :Descript, type: String field :ErrorText, type: String embedded_in :step_data end -- You received this message
2010 May 21
0
Multiple Models one form and validations ... no transactions(mongo)
I am trying to setup a sigup form thats pretty much just like the basecamp form. https://signup.37signals.com/basecamp/Plus/signup/new I want to create a User a Studio and a Subscription(chargify) a Subscription belongs to a Studio and not to a User. User gets tagged onto a Studio via an admin array. Is there any way to do this all in one form and still get back validation errors etc without
2010 Aug 18
0
Developer wanted for Rails-Mongo Knowledge Exchange improvements
We are searching for a developer to fork a Rails-based open source Knowledge Exchange (see shapado.com) and add some innovative features and extensions to this excellent codebase. The work will first involve installing and maintaining the codebase and some customizations to presentation layer. If the KE fork works well ( it''s stable code, so it should be fine) , the project will lead to
2014 Mar 10
0
Mongoid : bson namespace error
Hello All, I had been trying to work on Rails 4 and Mongoid gem. The following are the versions I had installed: bson-2.2.1 mongoid-3.1.6 After installing and trying to run "rails generate" command. It is failing with NameSpace error for BSON::ByteBuffer. It is trying to connect to mongodb server initially and getting successful. Post that it is failing with the following
2012 Feb 09
7
ruby script/server is not working
hi everyone i just typed ruby script/server -d and then after when i type again it is not working. i got this error [2012-02-09 16:19:54] WARN TCPServer Error: Address already in use - bind(2) Exiting /usr/lib/ruby/1.8/webrick/utils.rb:73:in `initialize'': Address already in use - bind(2) (Errno::EADDRINUSE) from /usr/lib/ruby/1.8/webrick/utils.rb:73:in `new'' from
2013 Jan 19
21
[PATCH]: PVH: specify xen features strings cleany for PVH
On Thu, 17 Jan 2013 22:22:47 -0500 Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote: > Jan had some comments about that patch: > > https://patchwork.kernel.org/patch/1745041/ > > Please fix it up so I can put it in the Linux tree. Please see below. Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com> Thanks, Mukesh diff --git a/arch/x86/xen/xen-head.S
2011 Feb 27
10
How to store the same key multi times in a Hash ?
given an Arra tags[] I need to produce a resulting Hash as following .. { "$in" => [tags[0]], "$in" =>[tags[1], ...} in which the key should be always the same and the value being an Array I tried this : myHash = {} tags.each do |tag| h = {"$in" => [tag]} myHash.merge!(h) end but the merge! is only