Javascript function needs rails variable


#1

I have implement this but rails variables are not working.


#2

This will only work if that script block is in an .erb template.


#3

it starts working
Cheers
Rabia Akhtar