firstdraft / draft_generators

Rails generators that help beginners learn to program.
MIT License
2 stars 3 forks source link

Show validation failure messages in alerts #112

Closed raghubetina closed 2 years ago

raghubetina commented 2 years ago

Currently, generated code shows only "The failed to create/update successfully." in a notice if validations fail.

This patch displays validation failure messages in an alert instead.

pmckernin commented 2 years ago

Good change, I like the idea of including .errors.full_messages as we show this in class and often use this when debugging with students.