Does anyone have an idea on how to implement this (http://railscasts.com/episodes/256开发者_如何学JAVA-i18n-backends) with MongoDB/Mongoid? My question is primarily about the initializer.rb file.
Consider the following: class Parent include Mongoid::Document field:name references_one :child before_create :initialize_child
I\'m building a versioned API, so I have the following nested controllers: ApiController < ApplicationController
I am trying to get my application online and functioning with Heroku. The application uses MongoHQ and Mongoid.
Under mongoid and rails 3 I have a collection of Users and a collection a Projects which embed many Relationships, the models are:
I want to develop a small webapp with Ruby on Rails and mongoDB. I use Rails 3.0.3 and the mongoid-gem. Now I want to do some tests with rspec, but it does not work as I expect. The tests give not the
Assume I\'ve a model A which is referencing many other models B. I have 开发者_开发百科a set of B\'s and want to create a form which creates/destroys the association (many-to-many).
I have a collection in Mongodb( Users ) and a collection ( GroupTask ) GroupTask has embedded ( Task ) objects.
I haveUser model with many fields and I would like to display a table as a matrix of 2 of those fields:
I am attempting to write a small blogging engine for myself in sinatra and mongoid and am trying to use the sinatra-authentication gem to do login/out.