mike-webster / pet-tracker

Track Pet Activities Throughout the Day
0 stars 0 forks source link

New User - Create Error 302 #31

Closed mike-webster closed 4 years ago

mike-webster commented 4 years ago

Description

When an error is encountered (duplicate email) on user creation the user experience is extremely confusing. It kicks you back to the new user page without any validation. I think the flash[:error] is set up to show on the next page instead of immediate one.

Technical Details

When an error occurs, the user should be shown the form they filled out with the appropriate validation error shown.

Acceptance Criteria

GIVEN A user submits the new user form
WHEN There is a validation error
THEN The user is shown the form they filled out, with the values they provided
AND The user is shown the validation errors appropriate

Example

ezgif com-video-to-gif (5)