Created
May 30, 2010 20:41
-
-
Save parndt/419316 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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