Merge pull request #50 from nicholaswyoung/master

Fixed GridFS instantiation demo in README.
This commit is contained in:
Kyle Banker 2011-07-11 06:44:39 -07:00
commit 88daaa0538

View File

@ -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). features (metadata, content type, seek, tell, etc).
Examples: Examples:
# Write a file on disk to the Grid # Write a file on disk to the Grid
file = File.open('image.jpg') file = File.open('image.jpg')
grid = Grid.new(db) grid = Mongo::Grid.new(db)
id = grid.put(file) id = grid.put(file)
# Retrieve the file # Retrieve the file