Skip to content

Instantly share code, notes, and snippets.

@bendrucker
Created January 28, 2014 14:45
Show Gist options
  • Save bendrucker/8668907 to your computer and use it in GitHub Desktop.
Save bendrucker/8668907 to your computer and use it in GitHub Desktop.
set.md
Error in user YAML: (<unknown>): mapping values are not allowed in this context at line 8 column 9
---
parent: model
name: set
type: 'method'
arguments:
  - attributes:
    type: object
  - options
    type: object
---

Set a hash of attributes (one or many) on the model. If any of the attributes change the model's state, a change event will be triggered. You may also pass individual keys and values.

customer.set({first_name: "Joe", last_name: "Customer"});
customer.set("telephone", "555-555-1212");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment