I\'m building backend system, as written in Iain Hecker\'s tutorial: http://iain.nl/backends-in-rails-3-1 and I try to adapt it to MongoDB with Mongoid.
So when I need t
Use the built-in method:
Model.attribute_names # => ["_id", "created_at", "updated_at", "name", "address"]