update rails resources