added integration with rails model and controller. started working with angular  objects. next: working on front-end