Skip to content

Instantly share code, notes, and snippets.

@JFickel
Created October 23, 2012 04:41
Show Gist options
  • Save JFickel/3936730 to your computer and use it in GitHub Desktop.
Save JFickel/3936730 to your computer and use it in GitHub Desktop.
javascript not running
show.html.erb
<% content_for :javascript_includes do %>
<%= javascript_include_tag "colleges.js" %>
<% end %>
application.html.haml
!!!
%html
%head
%title= yield(:title)
= csrf_meta_tag
= javascript_include_tag "application"
= stylesheet_link_tag "application"
= yield :javascript_includes
assets/javascripts/colleges.js
var height = $("#college_public_chat").prop('scrollHeight');
$("#college_public_chat").scrollTop(height);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment