title: ruby on rails : check table value from javascript
body: <p>How people can check the value of a table from javascript. I am using ruby on rails. I did this :</p>
  
  <pre><code>$(document).ready(function() {
    if ("&lt;%= @player.name %&gt;" == "" ) {
     //show some divs
    } 
  });
  </code></pre>
  
  <p>But it doesn't work. Even the player's name is empty, the divs don't showed.
  I want to check if the player's name is empty, then it should show some divs.
  Thanks.</p>