I have a Rails endpoint that redirects with url parameters.
The code is really simple:
def success_redirect
redirect_to "#{success_url}/#{encoded_params}"
end
My colleague hopes I could make the same redirect, but send parameters as JSON instead.
Is it possible to do this? Somehow I can't find any resources on the topic, which seems unusual.