Skip to content

Instantly share code, notes, and snippets.

@baldwindavid
Created April 1, 2009 17:38
Show Gist options
  • Save baldwindavid/88801 to your computer and use it in GitHub Desktop.
Save baldwindavid/88801 to your computer and use it in GitHub Desktop.
In layout file below linked stylesheets/js files. Note: This is HAML...
:javascript
jQuery(function($){
#{yield :onload}
});
In view files. Again HAML...
- content_for :onload do
:plain
$('div').toggle();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment