title: How to remove last element from div?
body: <p>I have list of descriptions and after remove one of them, I'd like to remove last element from div, not refreshing site. I don't know javascript in fact, so I'd like to ask how should my destroy.js.erb looks like? I can refresh whole class "descriptions" using </p>
  
  <pre><code>$('.descriptions').load(location.href + " .descriptions");
  </code></pre>
  
  <p>but I'm interested, if there is way to remove only last element.</p>
  
  <pre><code>  &lt;div class="descriptions"&gt;
         &lt;%= render @descriptions %&gt; 
    &lt;/div&gt;
  
   //_description.html.erb
   &lt;div class="description-field"&gt;
          &lt;%= @description.text %&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p>Thank you for any help</p>