how to handle a click event on grid to call in ruby on rails

Hello All!
Using dhtmlx grid in ruby on rails…
How to handle an event on the grid for example, clicking on a cell so that it calls an action of a particular controller??
eg)
like the cell content is a link and on clicking it I want to display a new page in ruby on rails apllication…?

To check if particular action has happened at the dhtmlxGrid you can use events. Please check more information here
docs.dhtmlx.com/doku.php?id=dhtmlxgrid:events
docs.dhtmlx.com/doku.php?id=dhtm … _to_events

Olga,
Yes, i know the attachEvent can be used i want the onRowSelect but the problem here is how to call a rails function ie some controllers action in the handler???

grid.attachEvent("onRowSelect",function(id){ dhtmlxAjax.get("http://some.com/controller/action/"+id); //ajax call of ruby script })