this.params.name
needs to be evaluated within the context of the route, and I believe that only can happen if data
is a function and not an object literal. Try this:
this.route('scheduledTasks', {
path: '/company/:name',
data: function() {
var company = this.params.name;
return {
items: function() {
return scheduledTasks.find({company: company});
}
};
}
});