diff --git a/README.md b/README.md index a66578656bf392e5d655d3c3a2fee6513e3fef62..cc2ac0921c14150d30d8375c96b5b9ae3c14bb9c 100644 --- a/README.md +++ b/README.md @@ -590,6 +590,17 @@ You can also do this to raise all exceptions: See `lib/geocoder/exceptions.rb` for a list of raise-able exceptions. +Troubleshooting +--------------- + +If you get one of these errors: + + uninitialized constant Geocoder::Model::Mongoid + uninitialized constant Geocoder::Model::Mongoid::Mongo + +you should check your Gemfile to make sure the Mongoid gem is listed _before_ Geocoder. If Mongoid isn't loaded when Geocoder is initialized, Geocoder will not load support for Mongoid. + + Known Issue -----------