I have created Ruby Session Variable I need to access this variable in Javascript
Lets take this scenario
session[:note] = 'Some Notes' this is done in Ruby on Rails
Now I want to access this is like
var session_val = js-code for access above session variable.
its not js.erb I know if it is js.erb we can access like
var sesion_val = "<%= session[:note] %>"
TIA