How to redirect users to a custom web page each time `params` contain a `redirect_uri` value?
问题 I am running Ruby on Rails 4.1 and I would like to implement a feature that redirects users to a custom web page when they perform an action by providing a redirect_uri parameter. In other words, I would like to "trigger" the redirection each time the redirect_uri value is present in params and the redirection should happen in any case (e.g., when GET, POST, PUT and DELETE HTTP requests are executed with HTML or JS formats) after the process flow has been fully accomplished (e.g., when the