How redirect 'Confirmation token invalid' on Devise
问题 I configured my Rails application with devise :confirmable and after registration the user receives an email with the confirmation link. When the user click in this link a second time the token is invalid which is the expected behavior in my application. However, it sends the user to a page located at "app\views\devise\confirmations\new.html.erb" with an error 'Confirmation token is invalid' and what I want is to show that error(<%= devise_error_messages! %>), but in my Sign In Page.