// Place your application-specific JavaScript functions and classes here // This file is automatically included by javascript_include_tag :defaults // add print page functionality to the print button Event.addBehavior({ '#printPage a:click' : function( e ){ window.print(); } });