Its a nested route, as such, it only models sometimes. This can be very confusing. Most likely, what’s happening is that EditRoute’s model hook is being called. You test this by putting debugger; code into EditRoute’s model.
It occurred to me that your route’s class name looks strange. It would suggest that you’re nesting Users inside of Edit. Are you doing that?
Can you show your Router.map(function(){?
Also, if you don’t already have Ember Inspector installed then you should install it and look at Routes to make sure that expected class names match your class names.
Cool, I should correct myself, your UsersRoute’s model is probably being called instead of UsersEditRoute because edit is nested in UsersRoute. I that correct?
Yeah, that’s right! It have something with dynamic segments to do i think. If i manually go to the url /users/id/edit then it works. So, it is possible to override the model hook when you using nested routes?
Nested routes assume that the data is loaded by the parent route. For example, if you have a profile page with tabs, then the profile model is loaded when the parent is rendered and the nested route uses data from parent.
If you want the model to load every time then you can make the Edit route a resource, like this: