update rails model and routes