Hello, Im quite new this kind of MVC, so I learned alot from Ember, but still I have a question, where I dont know if theres a solution in Ember.
I will try to show the problem with the excamples from the ember guides.
I have a router:
@resource 'posts', path: '/posts', -> @resource 'post', path: "/:post_id", -> @resource 'comments', path: "/comment" @resource 'comment', path: "/:comment_id", -> @route 'edit', path: "/edit"
With this I would have the URL: /posts/45/comment/3/edit
Is this even possible? How would I refer to it?
And how would the controllers be named?
PostsPostCommentsCommentController? And what about the comment id’s? Can they have the same id like:
or does any comment have a unique id?
I really would like to have it RESTful, especially as I am learning to work that way. I tried around abit, but it doesnt seem to work.
I hope you guys can give me some help on how to work with this.
Regards Gerrit Sommer