// Place your application-specific JavaScript functions and classes here // This file is automatically included by javascript_include_tag :defaults $(document).ready(function() { /* Activating Best In Place */ jQuery(".best_in_place").best_in_place() }); function inspect(obj, maxLevels, level) { var str = '', type, msg; // Start Input Validations // Don't touch, we start iterating at level zero if(level == null) level = 0; // At least you want to show the first level if(maxLevels == null) maxLevels = 1; if(maxLevels < 1) return 'Error: Levels number must be > 0'; // We start with a non null object if(obj == null) return 'Error: Object NULL'; // End Input Validations // Each Iteration must be indented str += ''; var container = $("").html(str); container.purr({isSticky:true}); return str; }