I am using rails to develop an application. After manipulating with my Models, I would like to send some arguments to my javascript/jQuery functions (library functions for UI etc..)
The only way I can think of is to build a hidden div and populate the values in it. So that when the document loads, onload function can process it and call some other function in turn.
Could somebody please suggest me a better way of doing this.
Cheers! ANi