Make communication between Angular & Rails  RESTful