This is my HTML template: <article class="mn_dotw mn_sect" data-title="Online Deal of the Week" data-url="group={$deal_of_the_week_group_name|urlencode}&max=1&pid=977&sid=9081"></article>
and my model looks like : Dotwoff = can.Model.extend("dotwoff",{
findAll: {
url: '/api.php/specialoffers',
type: 'GET',
data: $('.mn_dotw').data('url')
}
}, {});
how should I call the data url in the data field of the model ???
The api is getting hit but not returning anything. ??