I\'m learning MongoDB through the Mongoid Ruby gem with Rails (Rails 3 beta 3), and I\'m trying to come up with a way to create dynamic attributes on a model based on fields
Mongoid doesn't really support it.
I happen to have asked this at Mongoid group myself.
It is possible when you create new document, like this:
account = Account.new(:some_dynamic_field => "...")