mongomapper Questions
4
Solved
I need to write a query that finds all documents created on a specified date.
Let's suppose that the date is today.
I tried this:
Document.all(:created_at => Date.parse(Time.now.strftime('%Y/%m/...
Thermography asked 21/11, 2011 at 23:10
3
Solved
gem 'rails', '3.0.0'
gem 'devise'
gem 'bson_ext', '>= 1.0.7'
gem 'bson', '>= 1.0.7'
gem 'mongo_mapper', :branch => 'rails3', :git => 'http://github.com/jnunemaker/mongomapper.git'
gem '...
Gasket asked 27/9, 2010 at 10:23
9
Solved
I'm building a Rails application using MongoDB as the back-end and MongoMapper as the ORM tool. Suppose in version 1, I define the following model:
class SomeModel
include MongoMapper::Document
...
Selfinduced asked 19/11, 2009 at 22:52
6
Solved
I can't get MongoMapper to work with my Rails app. I get this error message:
**Notice: C extension not loaded. This is required for optimum MongoDB Ruby driver performance.
You can install the ex...
Obara asked 24/5, 2010 at 21:55
3
What is a good pattern for querying embedded documents on a document? For instance, my User document has an embedded Alerts document. If I want to see if a given User has an alert with name I can d...
Rub asked 25/5, 2011 at 16:27
8
Solved
I'm using Mongoid to work with MongoDB in Rails.
What I'm looking for is something like active record include. Currently I failed to find such method in mongoid orm.
Anybody know how to solve thi...
Arcadian asked 12/10, 2010 at 8:16
2
Solved
I am working on a pretty simple web application (famous last words) and am working with Rails 2.3.5 + MongoMapper 0.7.2 and using embedded documents. I have two questions to ask:
First, are there ...
Fingernail asked 26/3, 2010 at 19:11
1
Solved
It seems like Mongoid is now the superior ORM for Mongo based on performance and development activity. Unfortunately, we're on MongoMapper and need to migrate.
Are there any concerns or stumbling ...
Accretion asked 30/12, 2013 at 23:11
1
The ORM mongo_mapper and mongoid both support ruby on rails. However, after reading their documents I still cannot make a decision which one to use to develop a new application with rails4.
Any su...
Spiceberry asked 9/12, 2013 at 13:46
14
Solved
I have tried MongoMapper and it is feature complete (offering almost all AR functionality) but i was not very happy with the performance when using large datasets. Has anyone compared with Mo...
Heedful asked 24/12, 2009 at 13:43
1
Solved
I am trying to make a rails app using the Mongo Mapper gem. I am following the instructions in the Mongo Mapper Documentation.
Here is the link: Mongo Mapper Docs
First, I generated a new rails ...
Philosophy asked 18/9, 2013 at 18:40
2
I'd like to write an extension for Devise that allows you to use parse_resource as the datastore (as opposed to ActiveRecord). parse_resource is a Ruby wrapper for Parse.com's REST api. It's interf...
Walczak asked 2/12, 2011 at 23:37
1
I trying to use MongoDB with Rails (I never tried MongoDB before).
And I want to display the queries made by mongomapper in the rails console or the rails server (like ActiveRecord does)
Is there ...
Majuscule asked 21/7, 2012 at 16:2
2
First of all, I'm new to programming in general and new to Rails. I picked up Rails because it seems an easy language to start with. For my project I'm using MongoMapper with Rails.
I'm trying to ...
Hy asked 28/4, 2011 at 10:52
3
Solved
I run a sinatra application with mongomapper. I have models called Movie(Document) and Cover(EmbeddedDocument). I embed covers into movies using
@movie.covers << @cover
@movie.save
This work...
Aviation asked 20/12, 2009 at 14:37
3
Solved
I am getting multiple similar JSON object from a remote site and looking to store them in a local MongoDB.
What would be the best way to do this ? (Preferably via Mongoid or Mongo-mapper gems)
Th...
Hilton asked 30/10, 2010 at 10:52
2
Solved
I've got an existing production Ruby/Rails app that I want to migrate to MongoDB over time, as time permits, because it's not an option to just rewrite it all at one time. I'd love to be able to ju...
Belting asked 20/7, 2011 at 2:52
3
Solved
I have a mongomapper document with embedded documents, and want to make a copy of it.
In essence, what I am trying to do is something like this:
customer = Customer.find(params[:id])
new_custome...
Incursion asked 9/3, 2011 at 6:4
1
Solved
Ok, so firstly Im not very in the know when it comes to Ruby, Rails, Mongo or even ActiveRecord so I apologise if these questions are fairly basic. Firstly, I have an "Event" model and I have added...
Gadgeteer asked 10/4, 2011 at 16:41
1
Solved
I have my Yaml configuration file, mongo.yml:
development:
adapter: mongodb
database: fhsclock_development
host: localhost
port: nil
test:
adapter: mongodb
database: fhsclock_test
host: lo...
Meagre asked 26/10, 2011 at 0:11
5
Solved
I'm starting a hobby (non-revenue) project using Ruby on Rails. I've done a fair amount of development in Rails using Postgresql, and I can make a pretty good imitation of normalized schema. ...
Latvia asked 23/1, 2010 at 18:50
3
Solved
I have stumbled upon Mongoid which has great documentation: http://mongoid.org/docs/associations/
But I have heard that MongomMapper is de-facto for Rails.
Where do I find API documentation for u...
Lothair asked 23/8, 2010 at 21:50
3
I'm trying to get MongoDB to upsert multiple records with the following query, ultimately using MongoMapper and the Mongo ruby driver.
db.foo.update({event_id: { $in: [1,2]}}, {$inc: {visit:1}}, t...
Intercurrent asked 28/2, 2011 at 15:12
1
Solved
I use mongomapper with mongodb for rails models.
In the mongodb I have this function
db.system.js.save({_id:'resumenTemporada',value:function(collection, condition){
var res=
db[collection].grou...
Parrakeet asked 21/5, 2011 at 21:31
2
Solved
class Api::StoresController < ApplicationController
respond_to :json
def index
@stores = Store.all(:include => :products)
respond_with @stores
end
end
Returns only stores without the...
Paley asked 24/2, 2011 at 17:19
1 Next >
© 2022 - 2024 — McMap. All rights reserved.