Learning and integrating backbone in rails