logre solucionarlo cambiando la importacion de jquery en haml,
reemplace este script:
%script{src:"https://code.jquery.com/jquery-3.2.1.slim.min.js", integrity:"sha256-k2WSCIexGzOj3Euiig+TlR8gA0EmPjuc79OEeY5L45g=", crossorigin:"anonymous"}
por este otro:
%script{type:"text/javascript",src:"http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"}