Change post erb to redirect