Skip to content

Instantly share code, notes, and snippets.

@lukebergen
Created November 15, 2012 18:05
Show Gist options
  • Save lukebergen/4080168 to your computer and use it in GitHub Desktop.
Save lukebergen/4080168 to your computer and use it in GitHub Desktop.
manufacturer_specs = [{name: "width", value: "10"}]
hash = {name: "product name", manufacturer_specs: manufacturer_specs}
product_hashes = [hash]
Product.collection.insert(product_hashes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment