-
as seen on ASP.net Weblogs
- Search for 'ASP.net Weblogs'
The project I'm working on uses MongoDB for some stuff so I'm creating some documents to help developers speedup the learning curve and also avoid mistakes and help them write clean & reliable code. This is my first version of it, so I'm pretty sure I will be adding more stuff to it, so stay tuned…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I'm running Ubuntu Server 12.04 (32 bit) on an old (1998) computer. Everything's working fine until I try and start MongoDB.
somekittens@DLserver01:~$ mongo
MongoDB shell version: 2.2.2
connecting to: test
Sun Dec 16 22:47:50 Error: couldn't connect to server 127.0.0.1:27017 src/mongo/shell/mongo…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
hi
i have this document in mongo:
{
"_id": ObjectId("4d0b9c7a8b012fe287547157"),
"done_by": ["1"]
}
and i want to add another value to "done_by" field, so my expected document will be::
{
"_id": ObjectId("4d0b9c7a8b012fe287547157"),
"done_by": ["1","2","3"]
}
i try this:
$conn…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm currently using MongoDB to record application logs, and while I'm quite happy with both the performance and with being able to dump arbitrary structured data into log records, I'm troubled by the mutability of log records once stored.
In a traditional database, I would structure the grants for…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi!
I am trying to test out mongoDB and see if it is anything for me. I downloaded the 32bit windows version, but have no idea on how to continue from now on.
I normally use the WAMP services for developing on my local computer. Can i run mongoDB on Wamp?
However, what's the best (easiest!) way…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
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
key :some_key, String
end
Later in version 2, I realize that I need a new required key on the model…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm playing around with MongoMapper but I'm having trouble figuring out how to create a form for an object that has embedded documents.
With ActiveRecord, I'd use fields_for but when asked if this would be supported a few months ago, MongoMapper author John Nunemaker wrote: "Nope and nope. It is…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm trying to create a custom MongoMapper data type in RoR 2.3.5 called Translatable:
class Translatable < String
def initialize(translation, culture="en")
end
def languages
end
def has_translation(culture)?
end
def self.to_mongo(value)
end
def self.from_mongo(value)…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
when i am trying to get the basic devise examples running with current git versions from rails, mongomapper and devise, i have the following error appearing:
undefined method `to_key' for #<Admin:0x23dee04>
here is my actual source:
4: = form_for @admin, :url => admins_path do |f|
5:…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
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 any example applications out there using Rails + MongoMapper + EmbeddedDocument? Preferably on GitHub…
>>> More