type == "routine"
Last active
August 29, 2015 14:00
-
-
Save scottmessinger/11185942 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Code path (as far as I can tell): | |
// planbook/date.hbs Template: | |
{{render 'routine' routine}} | |
// planbook-date.js model | |
var PlanbookDate = Ember.Model.extend({ | |
routine: Ember.belongsTo('routine', {key: 'routineId'}). | |
}) | |
This is a perfect example of how Ember makes me feel frustrated. Because the container seems to be set automagically set on app init (and I don't know how to hook into it), I end up feeling helpless. I don't know where to add a line to make it work again. Here's my full thought process when I run into these bugs:
- Something initialized the store
- The store appears initailized without the app container
- Where was the store initialized?
- Is this an Ember-CLI bug or an Ember-Model issue? or Is this a line I put in a config somewhere?
- Can I even fix this?
When things work, Ember's easy but I almost never find Ember to be simple. I could be perceiving things incorrectly, but it seems when the Ember core team speaks of "developer ergonomics", they mean "let's make things easy" instead of "let's make things simple."
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment