I have a button on my Ruby on Rails view file.
Firstly when the button is clicked an ajax call is made which in response gives a json string. So far I have accomplished this task. I am stuck here:
The button also redirects me to another action of the same controller. Now I want to send the json string received by javascript as a parameter to that action.
Is there any way around.
Please help.
Thanks in advance.