title: jquery button event handler rails
body: <p>I have  the following code in a view file of my rails application:</p>
  
  <pre><code>  &lt;td&gt;
      &lt;div class="file_description"&gt;&lt;%= object.metadata['description']%&gt;
      &lt;button    type="button" class="btn btn-default edit_description"&gt;Edit&lt;/button&gt;&lt;/div&gt;
      &lt;div class="file_description_update"
        &lt;%= form_tag({:action =&gt; 'update_file_info'}, multipart: true) do %&gt; 
          Update File Description: &lt;%= text_area_tag :description %&gt;
          &lt;%= hidden_field_tag :s3_path, file %&gt;  
          &lt;%= hidden_field_tag :prefix, @prefix %&gt;
          &lt;%= submit_tag 'Submit' %&gt; &lt;/td&gt; &lt;br /&gt;
        &lt;% end %&gt;
      &lt;/div&gt;
    &lt;/td&gt; 
  </code></pre>
  
  <p>I need to bind my <code>Edit</code> button  <code>on click</code>  event  with the class <code>file_description_update</code> for each file I will be working with. Any views on the simplest way to do that in rails? Thanks</p>