update for rails