Skip to content

Instantly share code, notes, and snippets.

@boxxxie
Created October 28, 2011 16:39
Show Gist options
  • Save boxxxie/1322717 to your computer and use it in GitHub Desktop.
Save boxxxie/1322717 to your computer and use it in GitHub Desktop.
/* i'm expecting the url() is http://localhost:5984/campaigns/AllDayAlltime but it comes out as http://localhost:5984/campaigns */
function doc_setup(){
var Campaign = Backbone.Model.extend({
urlRoot:"http://localhost:5984/campaigns"
});
var AllDayAlltime = new Campaign({url:"AllDayAlltime"});
console.log(AllDayAlltime.url());
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment