The Rails plus Angular equation