问题 It's common practice in MongoDB to use short key names to save space. For example, one might want to use "fn" instead of "first_name" However in your app, you're screwed if you use "fn" all over the place. It's too ugly. For Rails specifically, is there an easy way to specify an alias when declaring a field in Mongoid? Also, does anyone know of any open source sample projects that use Mongoid? Thanks! 回答1: you should consider using field :fn, :as => :firstname as outlined here: http://groups