Permalink
Browse files

A small change to the README. Corrected how to instantiate the GridFS…

… object.
  • Loading branch information...
1 parent 6b8d19b commit 7b0a35b631242a754b218695d636e1dba6e84bfb @nicholaswyoung nicholaswyoung committed Jul 3, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 README.md
View
3 README.md
@@ -109,9 +109,10 @@ for details, and see examples/gridfs.rb for code that uses many of the Grid
features (metadata, content type, seek, tell, etc).
Examples:
+
# Write a file on disk to the Grid
file = File.open('image.jpg')
- grid = Grid.new(db)
+ grid = Mongo::Grid.new(db)
id = grid.put(file)
# Retrieve the file

0 comments on commit 7b0a35b

Please sign in to comment.