Nested route for CRUD


Hi there!

I’m new to Ember. I have a classic Post-Comment model structure. Post has many comments. I need to send all new comments to back-end to /posts//comments instead of /comments. Is there a was to do it? Googling gives many links to questions but not to answers :frowning:


Override the buildURL method for the model on the Adapter:


Possibly of interest and corresponding addon


thank you, ember-data-url-templates - that’s what I needed! Everything works :slight_smile: