Skip to content

Instantly share code, notes, and snippets.

@mattmarcello
Created October 6, 2014 19:49
Show Gist options
  • Save mattmarcello/6247a10a2daab9047c82 to your computer and use it in GitHub Desktop.
Save mattmarcello/6247a10a2daab9047c82 to your computer and use it in GitHub Desktop.

Write a method Thing.create that instantiates a new Thing instance AND saves it to the database

challenge: Can you modify it to create multiple things when an array of options hashes are passed in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment