MongoMapper and bson_ext problem

前端 未结 6 1784
夕颜
夕颜 2021-02-06 02:49

I can\'t get MongoMapper to work with my Rails app. I get this error message:

**Notice: C extension not loaded. This is required for optimum MongoDB Ruby driver performa

6条回答
  •  一生所求
    2021-02-06 02:56

    1. Install bson_ext using:

      gem install bson_ext
      
    2. Add the gem to your Gemfile:

      gem 'bson_ext'
      
    3. Run bundle in your project root level directory.

提交回复
热议问题