Skip to content

Instantly share code, notes, and snippets.

@nuwansh
Created August 31, 2013 17:57
Show Gist options
  • Save nuwansh/6399701 to your computer and use it in GitHub Desktop.
Save nuwansh/6399701 to your computer and use it in GitHub Desktop.
# Build multiple objects
# Association is Client has many projects
client = Client.new first_name: "Bob"
# Add more projects
client.build [{ name: "Project1"}, { name: "Project2" }]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment