Skip to content

Instantly share code, notes, and snippets.

@parndt
Created May 30, 2010 20:41
Show Gist options
  • Save parndt/419316 to your computer and use it in GitHub Desktop.
Save parndt/419316 to your computer and use it in GitHub Desktop.
# This is how to use content_for :head :
<% content_for :head do %>
<script type='text/javascript'>
$(document).ready(function() {
// do something here that happens when the DOM is loaded (when all the HTML has been parsed)
}
</script>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment