RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: ted-softserve
class Author ... key :name # was removed in Mongoid3 end
You're supposed to override the _id field:
class Author ... field :_id, type: String, default: ->{ name } end
Docs: http://mongoid.org/en/mongoid/docs/upgrading.html
You're supposed to override the _id field:
Docs: http://mongoid.org/en/mongoid/docs/upgrading.html