TerminalAdmin
Slightly inspired by the interactive_editor gem, this allows you to edit mongoid documents as yaml in vim. Once the file is written, the changes are applied to that object. If you tack on the bang, then the changes are automatically persisted to the database.
example:
require 'mongoid'
Mongoid.configure do |config|
config.master = Mongo::Connection.new.db("terminal_admin")
end
class Product
include Mongoid::Document
field :name, :type => String
field :price, :type => Integer
end
require 'terminal_admin'
product = Product.new
product.edit
Nice idea. It would be great to use ENV['EDITOR'] instead of hardcoding vim.