update rails api to feature