Add task resource in backbone and rails