Created
August 22, 2008 02:09
-
-
Save ivey/6719 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
<html> | |
<script type="text/javascript"> | |
$(function() { | |
<%= yield :jquery %> | |
}); | |
</script> | |
..... | |
and then in view: | |
<% content_for :jquery do %> | |
$('#foo').hide(); | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment