marcioj / ember-cli-scaffold

Scaffolds models, routes and templates a la rails
https://github.com/marcioj/ember-cli-scaffold
43 stars 9 forks source link

How can destroy/remove a scaffold? #30

Closed jgamedev closed 8 years ago

jgamedev commented 8 years ago

http://thegoodhuman.com/please-just-clean-up-after-yourself/

marcioj commented 8 years ago

ember-cli has a command called destroy which is the opposite of generate. So, if you generate something with ember generate scaffold user name:string just calls ember destroy scaffold user name:string and the previous changes will be undone.

jgamedev commented 8 years ago

Thanks, maybe add this to the Read me file so that people don't wonder so much? Btw, Google doesnt help much in this case because it doesn't bring this information up and most results actually refer to Rails scaffold

marcioj commented 8 years ago

@jgamedev it makes sense. I added in f762e957796dc5ea654755334a5d59fed50c11ed

jgamedev commented 8 years ago

Thank you. Although I'd be surprised if you'd need to provide more than just the model name to issue a destroy command, not the all the original params as per your example. ( but can't tell for sure)

marcioj commented 8 years ago

You're right, just ember destroy scaffold <model-name> works. I updated the README again with this simplified version.