title: How to pass javascript variables to rails variables
body: <p>How can I pass a javaScript variable into ruby. I want to do something like this but I don't know how to express it.</p>
  
  <pre><code>function save(){
      var g = document.getElementById("self").value;
      &lt;% @owner.info = g %&gt;
  }
  </code></pre>
  
  <p>Another possible work around is that i would need to be able to extract contents of a text area through rails and not javascript.</p>
  
  <p>Can anyone help me?</p>