Skip to content

Instantly share code, notes, and snippets.

@guiocavalcanti
Created July 7, 2011 17:37
Show Gist options
  • Save guiocavalcanti/1070069 to your computer and use it in GitHub Desktop.
Save guiocavalcanti/1070069 to your computer and use it in GitHub Desktop.
<%= pjax_content_for :head_scripts_and_styles do %>
<%= lazy_load :css, javascript_path("myplugin.js"), jammit_path(:jammt_package) do %>
(function($){
var a = new Abc();
a.init();
})($);
<% end %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment