Shouldn’t I be able to get my controllers model by doing this.get(“content”) or this.get(“model”)?
For help like this, try Stack Overflow first. Perhaps someone else already answered it, but if not, raise the question and someone will probably pop in. If not, let me know and I’ll take a look for sure. This forum is for more general/community discussion.
It would help if you would provide code (or if you’ve asked this on StackOverflow, a link to the SO question), but the most likely reasons are:
- your controller is not an ObjectController (if you defined it yourself, make sure you did
Ember.ObjectController.extend
instead ofEmber.Controller.extend
) - In your route you overrode the
setupController
method and did not callthis._super()
. The default behavior of thesetupController
hook is to set themodel
property on your controller, so if you wrote your ownsetupController
and didn’t call super, you may have inadvertently removed that functionality