update rails for controller