Try specifying urlRoot in the model:
From the docs:
var Book = Backbone.Model.extend({urlRoot : '/books'});
var solaris = new Book({id: "1083-lem-solaris"});
solaris.fetch();
More Related Contents:
- rails and backbone working together
- Underscore template throwing variable not defined error
- Explanation of …
- Best way to iterate over an array without blocking the UI
- How to call a REST web service API from JavaScript?
- Backbone.js Empty Array Attribute
- Is there a JavaScript MVC (micro-)framework? [closed]
- JavaScript REST client Library [closed]
- How to use if statements in underscore.js templates?
- Cross Domain Resource Sharing GET: ‘refused to get unsafe header “etag”‘ from Response
- Finding JavaScript memory leaks with Chrome
- “Single-page” JS websites and SEO
- Backbone.js and pushState
- Backbone: event lost in re-render
- Backbone.js get and set nested object attribute
- Backbone 0.9.9: Difference between listenTo and on
- Limiting number of displayed results when using ngRepeat
- In Javascript, what does this underscore mean?
- The collection nested inside firebase collection’s model doesn’t have add function
- Returning data from Axios API
- Ember without Ember Data
- start javascript code with $(function, etc
- What is the purpose of backbone.js?
- Show pop-ups the most elegant way
- Best practices of building a website using Node.js
- Does MongoDB have a native REST interface?
- Extending React.js components
- Uncaught SyntaxError: Failed to execute ‘querySelector’ on ‘Document’
- How to fetch data server-side in the app directory of Next.js? Tried getStaticProps but it’s returning undefined
- Super in Backbone