Like most people, I think, I like to experiment with code in console.
When getting an ember-data model instance to experiment with, my general approach is:
// Usually I'm lazy and do `s = ...`
store = App.__container__.lookup('store:main')
// Again, lazy with `a = `, but that'll bite me later
accounts = store.find('account')
// Wait till the request completes, then
account = accounts.get('firstObject')
// Now I finally have an account to experiment with
While this isn’t terrible, I can’t help wonder if there’s an easier way. Am I missing something? Or am I just spoiled by the rails console (which would just be Account.first
).