create angular resource to interact with rails api