How to send data from controller to javascripts function

Is there anyway to call javascripts function in rails controller? if I
prepared some data in the controller, and i want my javascripts
function to handle these data, how should i do?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs