Skip to content
This repository has been archived by the owner on Nov 21, 2018. It is now read-only.

Models not loading #19

Closed
NickBusey opened this issue Apr 23, 2014 · 2 comments
Closed

Models not loading #19

NickBusey opened this issue Apr 23, 2014 · 2 comments

Comments

@NickBusey
Copy link

Running 'scaffolt model test' creates app/models/test.coffee as expected.

My models weren't accessible, so as a sanity check I put in an Alert. The alert is not shown when loading the page.

app/models/test.coffee:

alert("Model loaded")
module.exports = App.Test = DS.Model.extend()

@mutewinter
Copy link
Owner

Ah, I know why you're getting this. It's because Ember Data isn't included out of the box. You can type cake ember-data:install into the terminal to get it. I'm going to add it by default, because who doesn't love a little Ember Data.

Thanks for pointing this out.

@NickBusey
Copy link
Author

I wish it was that simple, but I had already installed ember data prior to this.

Running the ember-data:install again has no effect on things. It's still not loading the models.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants