Sha256: 3dd8a4c17c5b432fb6fdd6a435f8eb2f08bba15e3db145448a888715248c0bc7
Contents?: true
Size: 360 Bytes
Versions: 2
Compression:
Stored size: 360 Bytes
Contents
#!/usr/bin/env ruby -rubygems require File.dirname(__FILE__) + '/authentication' # fetch the collection first collection = StorageRoom::Collection.find('4ddaf68b4d085d374a000003') entry2 = collection.entry_class.new(:title => 'Bar', :price => 2.23) if entry2.save puts "Entry saved" else puts "Entry could not be saved: #{entry2.errors.join(', ')}" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
storage_room-0.2.1 | examples/create_entry.rb |
storage_room-0.2.0 | examples/create_entry.rb |