I need to pass an array value to the link_to function in rails. The link url needs to be http://domain.com/?example%5Bitem%5D=value
I’ve tried with this code, but it doesn’t work.
link_to example_path(example[item]: value)
Any suggestions?
Thanks
Try: