Use redirect_to :back instead