Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added reference to index creation on mongoDB

  • Loading branch information...
commit 015594b9591b75c23e6aa1489c10991f9750541b 1 parent ff3b20f
Victor Hugo Germano victorhg authored
Showing with 15 additions and 0 deletions.
  1. +15 −0 README.md
15 README.md
View
@@ -34,6 +34,13 @@ class River
end
```
+Generate indexes on MongoDB:
+
+```
+rake db:mongoid:create_indexes
+```
+
+
Before we manipulate the data mongoid_spacial handles is what we call points.
Points can be:
@@ -143,6 +150,14 @@ rivers = rivers.per(25).page(1)
rivers.reset! # resets the object to it is original state right after query.
```
+Troubleshooting
+-------------
+
+**Mongo::OperationFailure: can't find special index: 2d**
+
+Indexes need to be created. Execute command: <code>rake db:mongoid:create_indexes</code>
+
+
Thanks
-----------
* Thanks to Kristian Mandrup for creating the base of the gem and a few of the tests
Please sign in to comment.
Something went wrong with that request. Please try again.