Devise redirect back on sign up failure with validations
问题 I have a simple Devise registration form with the validatable plugin. It mostly works as intended, if the user forgets to enter a first name it redirects them back with a red validation message. The problem is it redirects to the same path a successful login would have the user go to (i.e. it redirects them to /user and not back to /user/sign_up ). If the user then refreshes the page for whatever reason they get a No route matches [GET] "/user" error. How can I force a redirect to go back to