I need to pass some params in the url from a 3rd-party service into User#new
.
Due to strong parameters the controller is expecting params in the form user[name], user[email]. However, this 3rd-party service is blocking the use of square brackets in a param key.
What's the easiest Rails-y way to work around this? Perhaps in the Rails router? I'd like to take email=abc@example.com
and convert it to user[email]=abc@example.com
before the request gets rejected by the controller.
Thoughts?
Thanks!