title: How to use a JavaScript variable in erb code in Rails?
body: <p>I have a JavaScript variable:</p>
  
  <pre><code>var selectValUser = $('.select_user :selected').val();
  </code></pre>
  
  <p>I need to use this variable in erb code on the same page, i.e</p>
  
  <pre><code>&lt;%= get_free_hours_for_user(selectValUser) %&gt;
  </code></pre>
  
  <p>How can I do it?</p>