Longtime Rails Dev, Backbone Noob.
In my rails models, a project has many tasks and a task belongs to a project.. Standard stuff.
Trying to get a project's tasks json in a collection.
ExampleApp.Collections.Tasks = Backbone.Collection.extend({
url: '/projects/<dynamic_id>/tasks',
model: ExampleApp.Models.Task
});
Every example Ive seen so far references the url as /tasks. Id like to pass a project id to the collection to get that projects tasks.
Ive checked out Backbone Relational but not sure what the best solution is.
Cheers