title: Getting a value from Javascript on Ruby
body: <pre><code>&lt;td class="run_time"&gt;&lt;%= l.text_field :run_time, :class =&gt; "line_item_run_time" %&gt;&lt;/td&gt;
  </code></pre>
  
  <p>Hello. </p>
  
  <p>I have rhtml code, l.text_field :run_time, has a value in its textbox that I need to use and I want to store it in a variable, if for example I do variable = l.text_field :run_time, it is going to save the whole object, the textbox with the value inside. Right now I just need the number that is inside. </p>
  
  <p>Could you please tell me how can I do this it Ruby. Thanks</p>