How-To:-Upgrade-to-Devise-3.1.md
https://github.com/plataformatec/devise/blob/master/CHANGELOG.md
config.allow_insecure_token_lookup = true in your configuration file. It is recommended to keep this configuration set to true just temporarily in your production servers only to aid migration@token. You will need to update your mailers and re-copy the views to your application with rails g devise:viewsdevise_parameter_sanitizer.sanitize(:action) instead of devise_parameter_sanitizer.for(:action)