Can I have a ruby code inside a java script function written in .js file?
When I tried it, i got an error.
e.g. consider following function inside myscript.js file
But this works if I have above function in a rhtml file inside tag.
Any inputs in this regard will be really helpful.
Thanks and Regards,