Skip to content

Instantly share code, notes, and snippets.

@dalmaer
Created January 17, 2012 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dalmaer/1625558 to your computer and use it in GitHub Desktop.
Save dalmaer/1625558 to your computer and use it in GitHub Desktop.
Phoenix.View.extend({
name: "address-form",
events: {
"submit form": "_handleSubmit"
},
_handleSubmit: function(event) {
this.serialize(event, function(attributes) {
attributes["last-name"] === "Beastridge";
attributes.address.street === "123 Chestnut";
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment