Skip to content

Instantly share code, notes, and snippets.

@brundage
Created June 5, 2012 18:17
Show Gist options
  • Save brundage/2876667 to your computer and use it in GitHub Desktop.
Save brundage/2876667 to your computer and use it in GitHub Desktop.
http://i.imgur.com/IhEFF.png
>>> var c = App.store.find(App.Citizen, 2);
{"citizen":{"biography":"Voter McVoter has nothing to say about herself","birth_date":null,"city":null,"country":null,"created_at":"2012-05-20T18:42:16Z","email":null,"first_name":"Voter","gender":"female","id":2,"invitation_id":2,"last_name":"McVoter","motto":null,"photo_content_type":null,"photo_file_name":null,"photo_file_size":null,"photo_updated_at":null,"region_state":null,"updated_at":"2012-05-20T18:42:16Z","zip":null}}
assertion failed: A data hash was loaded for a model of type App.Citizen but no primary key 'undefined' was provided.
deprecate(message="ember_assert is depreca...e Ember.assert instead.", test=false)ember.js?body=1 (line 94)
deprecateFunc()ember.js?body=1 (line 136)
load(type=App.Citizen, id=Object { biography="Voter McVoter has nothing to say about herself", created_at="2012-05-20T18:42:16Z", first_name="Voter", more...}, hash=Object { biography="Voter McVoter has nothing to say about herself", created_at="2012-05-20T18:42:16Z", first_name="Voter", more...})ember-...?body=1 (line 1127)
success(json=Object { citizen={...}})ember-...?body=1 (line 204)
fire(context=Object { url="/citizens/2", isLocal=false, global=true, more...}, args=[Object { citizen={...}}, "success", Object { readyState=4, responseText="{"citizen":{"biography"...18:42:16Z","zip":null}}", status=200, more...}])jquery.js?body=1 (line 1047)
fireWith(context=Object { url="/citizens/2", isLocal=false, global=true, more...}, args=[Object { citizen={...}}, "success", Object { readyState=4, responseText="{"citizen":{"biography"...18:42:16Z","zip":null}}", status=200, more...}])jquery.js?body=1 (line 1165)
done(status=200, nativeStatusText="OK ", responses=Object { text="{"citizen":{"biography"...18:42:16Z","zip":null}}"}, headers="Content-Type: applicati...Connection: Keep-Alive\n")jquery.js?body=1 (line 7400)
callback(_=readystatechange , isAbort=undefined)jquery.js?body=1 (line 8181)
[Break On This Error]
try { __fail__.fail(); } catch (e) { error = e; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment