Skip to content

Instantly share code, notes, and snippets.

@ivey
Created August 22, 2008 02:09
Show Gist options
  • Save ivey/6719 to your computer and use it in GitHub Desktop.
Save ivey/6719 to your computer and use it in GitHub Desktop.
<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