Use ruby methods in javascript without ajax
- by nijikunai
Hi everyone!
Is it possible to call a ruby method inside javascript? One way of implementing it is via ajax calls, but is there a way I can embed that ruby function inside the js file and call it just like calling any other js function?