I have an instance variable @foo in my create controller action and I am rendering create.rjs template. In the RJS template I need to call a js function (with page.call) and pass @foo as params. How is it possible..
how to pass ruby instance variable as params to js function in a rjs page
251 views Asked by rubyist At
2
It's been years since i've used RJS, but this might work: