add failure/store methods to controller in rails tutorial