-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generator for resource #21
Comments
Thank you for noticing this - it does actually look like generating resources doesn't work at all at the moment, they generate js-files either way, which then means it tries to add the route to I can think of a few ways of fixing this, so I'll take a look in not too long. For now, generating the model and route separately would be the way to go. You can specify a resource when generating the route by running
Sorry about this. |
Thanks for your answer and effort on it! |
I looked in to this today, but unfortunately it doesn't look like I have the tools available to make this work again right now. Ping @jgwhite - do you have any suggestions on making this work? Whatever I do, the |
In the ember-cli’s resource blueprint, _processBlueprint: function(type, name, options) {
var mainBlueprint = Blueprint.lookup(name, {
ui: this.ui,
analytics: this.analytics,
project: this.project,
paths: this.project.blueprintLookupPaths() // <---
});
... To get ember-cli-coffeescript working quickly, I would suggest copying and fixing ember-cli’s resource blueprint. Long term, I’m hoping to find time to add a |
It looks like |
Here's my attempt so far: https://github.com/kimroen/ember-cli-coffeescript/blob/fixing-resources-blueprint/blueprints/resource/index.js A log of { path: '/Users/kimroen/Utvikling/kimroen/ember-cli-coffeescript/blueprints/resource',
name: 'resource' } |
@kimroen You need to set the project within install
|
@nathanpalmer I could kiss you. |
This should work again now with ember-cli-coffeescript 0.8.0. Not pretty - hopefully I can delete all this code again in the future. |
When I run
I got an error saying
This happens only when I'm trying to generate a resource. When trying to generate a route all is working perfectly, a route is being added inside my router.coffee file and the route and template files are being generated perfectly as coffee.
Anyone else noticed this?
The text was updated successfully, but these errors were encountered: