vendredi 26 août 2016

Alert nil? method Ruby on Rails

I want to show a simple alert of the boolean value of the method nil in ruby rails within javascript. I am trying with the next sentence

alert("<% ''.nil? %>")

But I get a blank dialog box.

Could you help me?

Aucun commentaire:

Enregistrer un commentaire