title: Jquery not targeting item in Ruby on Rails
body: <p>I'm trying to create a smooth scrolling effect in Rails using Jquery but I can't seem to get Jquery to target the button class. The link I'm trying to target is like this.</p>
  
  <pre><code>&lt;%= link_to("#projects")  do %&gt;
  &lt;i class="fa fa-arrow-circle-down fa-4x" aria-hidden="true" 
  id="arrowButton" class="slideButton"&gt;&lt;/i&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>and this is the jquery code</p>
  
  <pre><code>$(document).ready(function() {
   $('.slideButton').click(function() {
    alert('Clicked.');
   });
  
  });
  </code></pre>
  
  <p>when I click the link it does not create the alert.</p>