ember-cli-admin icon indicating copy to clipboard operation
ember-cli-admin copied to clipboard

Feature Request: Work with Existing Models

Open Goldcap opened this issue 9 years ago • 5 comments

This might be something that already works, but can I use ember-cli-admin to generate views on top of prior models? My guess is it's in there, but from the README I couldn't see how.

table-view-controller? I guess?

I could write something that would perhaps do all this, but wanted to check with you first to see if it made sense. Love the project! Super work!

Goldcap avatar Jun 29 '15 13:06 Goldcap

If you want generate table views for models, only create controller with plural name. user -> users.js and extend it from table-view-controller.

OpakAlex avatar Jun 29 '15 13:06 OpakAlex

Read: https://github.com/ember-admin/ember-cli-admin/wiki/Manual-installation

OpakAlex avatar Jun 29 '15 13:06 OpakAlex

Gotcha, thanks Alex. I'll probably fork this and do some damage later this week!

Also, I note that "ObjectController is deprecated to "Controller" in 1.11, so I'll keep an eye out for compat with 2.0, which I see you're working on. I might submit a quick pull request to update the Manual Installation notes if I find anything else there that's outdated.

Goldcap avatar Jun 29 '15 13:06 Goldcap

Its cool. Its very easy and fast to create a new app by using ember-cli-admin. But you may get into a little trouble with the old routes or controllers now If you want to use ember-cli-admin in the old applications. I expect all of the resources generated by ember-cli-admin are under a separate namespace like padrino-admin or 'rails-admin`.

mojied avatar Jul 01 '15 12:07 mojied

we keep working for 2.0 part. some issue.

OpakAlex avatar Jul 01 '15 12:07 OpakAlex