Large deviations for the one-dimensional Edwards model