javascript - No flash message output in console -


i have controller hit via ajax call , sets flash[:info] string. controller renders js.erb file put:

console.log("<%= flash["info"] %>") 

but unfortunately nothing output in console. how can output message ?

it's because flash[:info] doesn't equal flash["info"], have use 1 type. should work:

console.log("<%= flash[:info] %>") 

Comments

Popular posts from this blog

html - Cut text on left side inside button while centering -

plugins - CodeIgniter support on netbeans 8.0 -

php - Selecting items from MySQL for a status update feed efficiently while accounting for possible spam -