document.write("<div class=\"pastie\">\n");
document.write("  <link href=\"http://pastie.org/stylesheets/embed.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n");
document.write("  <link href=\"http://pastie.org/stylesheets/clean.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n");
document.write("  \n");
document.write("\n");
document.write("  \n");
document.write("  \n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("	\n");
document.write("	<div class=\"allcode\">\n");
document.write("		<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n");
document.write("		<tr>\n");
document.write("			<td>\n");
document.write("				\n");
document.write("				<pre class=\"textmate-source-numbers\">1\n");
document.write("2\n");
document.write("3\n");
document.write("4\n");
document.write("5\n");
document.write("6\n");
document.write("7\n");
document.write("8\n");
document.write("9\n");
document.write("10\n");
document.write("11\n");
document.write("12\n");
document.write("13\n");
document.write("14\n");
document.write("15\n");
document.write("16\n");
document.write("17\n");
document.write("18\n");
document.write("19\n");
document.write("20\n");
document.write("21\n");
document.write("22\n");
document.write("23\n");
document.write("24\n");
document.write("25\n");
document.write("26\n");
document.write("27\n");
document.write("28\n");
document.write("29\n");
document.write("30\n");
document.write("31\n");
document.write("32\n");
document.write("33\n");
document.write("34\n");
document.write("35\n");
document.write("36\n");
document.write("37\n");
document.write("38\n");
document.write("<\/pre>\n");
document.write("			<\/td>\n");
document.write("		<td>\n");
document.write("		<pre class=\"textmate-source\"><pre class=\"sunburst\"><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&lt;<\/span><span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>%<\/span> <span class=\'keyword keyword_control keyword_control_ruby\'>if<\/span> <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@total<\/span> <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>==<\/span> <span class=\'constant constant_numeric constant_numeric_ruby\'>0<\/span> <span class=\'string string_quoted string_quoted_other string_quoted_other_literal string_quoted_other_literal_other string_quoted_other_literal_other_ruby\'>%&gt;<\/span>\n");
document.write("<span class=\"String\"><\/span>\n");
document.write("<span class=\"String\">&lt;p&gt;<\/span><span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>No<\/span> items found...<span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&lt;<\/span><span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>/<\/span>p<span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&gt;<\/span>\n");
document.write("\n");
document.write("<span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&lt;<\/span><span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>%<\/span> <span class=\'keyword keyword_control keyword_control_ruby\'>else<\/span> <span class=\'string string_quoted string_quoted_other string_quoted_other_literal string_quoted_other_literal_other string_quoted_other_literal_other_ruby\'>%&gt;<\/span>\n");
document.write("<span class=\"String\"><\/span>\n");
document.write("<span class=\"String\">&lt;p&gt;<\/span><span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Number<\/span> of accounts found : <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&lt;<\/span>b&gt;<span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&lt;<\/span><span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_augmented keyword_operator_assignment_augmented_ruby\'>%=<\/span> <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@total<\/span> <span class=\'string string_quoted string_quoted_other string_quoted_other_literal string_quoted_other_literal_other string_quoted_other_literal_other_ruby\'>%&gt;&lt;/b&gt;<\/span><span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&lt;<\/span><span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>/<\/span>p<span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&gt;<\/span>\n");
document.write("\n");
document.write("<span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&lt;<\/span><span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_augmented keyword_operator_assignment_augmented_ruby\'>%=<\/span> will_paginate <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@accounts<\/span><span class=\'string string_quoted string_quoted_other string_quoted_other_literal string_quoted_other_literal_other string_quoted_other_literal_other_ruby\'>%&gt;<\/span>\n");
document.write("<span class=\"String\">    &lt;HR&gt;<\/span>\n");
document.write("\n");
document.write("\n");
document.write("<span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&lt;<\/span>table<span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&gt;<\/span>\n");
document.write("  <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&lt;<\/span>thead<span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&gt;<\/span>\n");
document.write("    <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&lt;<\/span>tr<span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&gt;<\/span>\n");
document.write("      <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&lt;<\/span>td <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&lt;<\/span><span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_augmented keyword_operator_assignment_augmented_ruby\'>%=<\/span> sort_td_class_helper <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;property no&quot;<\/span> <span class=\'string string_quoted string_quoted_other string_quoted_other_literal string_quoted_other_literal_other string_quoted_other_literal_other_ruby\'>%&gt;&gt;<\/span>\n");
document.write("        <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&lt;<\/span><span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_augmented keyword_operator_assignment_augmented_ruby\'>%=<\/span> sort_link_helper <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Property No&quot;<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;property_no&quot;<\/span> <span class=\'string string_quoted string_quoted_other string_quoted_other_literal string_quoted_other_literal_other string_quoted_other_literal_other_ruby\'>%&gt;<\/span>\n");
document.write("<span class=\"String\">      &lt;/td&gt;<\/span>\n");
document.write("      <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&lt;<\/span>td <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&lt;<\/span><span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_augmented keyword_operator_assignment_augmented_ruby\'>%=<\/span> sort_td_class_helper <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;address&quot;<\/span> <span class=\'string string_quoted string_quoted_other string_quoted_other_literal string_quoted_other_literal_other string_quoted_other_literal_other_ruby\'>%&gt;&gt;<\/span>\n");
document.write("        <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&lt;<\/span><span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_augmented keyword_operator_assignment_augmented_ruby\'>%=<\/span> sort_link_helper <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Address&quot;<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;address&quot;<\/span> <span class=\'string string_quoted string_quoted_other string_quoted_other_literal string_quoted_other_literal_other string_quoted_other_literal_other_ruby\'>%&gt;<\/span>\n");
document.write("<span class=\"String\">      &lt;/td&gt;<\/span>\n");
document.write("      <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&lt;<\/span>td <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&lt;<\/span><span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_augmented keyword_operator_assignment_augmented_ruby\'>%=<\/span> sort_td_class_helper <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;close_date&quot;<\/span> <span class=\'string string_quoted string_quoted_other string_quoted_other_literal string_quoted_other_literal_other string_quoted_other_literal_other_ruby\'>%&gt;&gt;<\/span>\n");
document.write("        <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&lt;<\/span><span class=\'keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_augmented keyword_operator_assignment_augmented_ruby\'>%=<\/span> sort_link_helper <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;Close Date&quot;<\/span>, <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;close_date&quot;<\/span> <span class=\'string string_quoted string_quoted_other string_quoted_other_literal string_quoted_other_literal_other string_quoted_other_literal_other_ruby\'>%&gt;<\/span>\n");
document.write("<span class=\"String\">      &lt;/td&gt;<\/span>\n");
document.write("    <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&lt;<\/span><span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>/<\/span>tr<span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&gt;<\/span>\n");
document.write("  <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&lt;<\/span><span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>/<\/span>thead<span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&gt;<\/span>\n");
document.write("  <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&lt;<\/span>tbody<span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&gt;<\/span>\n");
document.write("   <span class=\'keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_ruby\'>&lt;<\/span><span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>%<\/span> <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@accounts<\/span>.each <span class=\'keyword keyword_control keyword_control_start-block keyword_control_start-block_ruby\'>do <\/span>|<span class=\'variable variable_other variable_other_block variable_other_block_ruby\'>i<\/span>| <span class=\'string string_quoted string_quoted_other string_quoted_other_literal string_quoted_other_literal_other string_quoted_other_literal_other_ruby\'>%&gt;<\/span>\n");
document.write("<span class=\"String\">    &lt;tr class=&quot;&lt;%= cycle(&quot;even&quot;,&quot;odd&quot;) %&gt;<\/span><span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;&gt;<\/span>\n");
document.write("<span class=\"String\">      &lt;td&gt;&lt;%= i.property_no %&gt;&lt;/td&gt;<\/span>\n");
document.write("<span class=\"String\">      &lt;td&gt;&lt;%= i.address %&gt;&lt;/td&gt;<\/span>\n");
document.write("<span class=\"String\">      &lt;td&gt;&lt;%= i.close_date %&gt;&lt;/td&gt;<\/span>\n");
document.write("<span class=\"String\">    &lt;/tr&gt;<\/span>\n");
document.write("<span class=\"String\">    &lt;% end %&gt;<\/span>\n");
document.write("<span class=\"String\">  &lt;/tbody&gt;<\/span>\n");
document.write("<span class=\"String\">&lt;/table&gt;<\/span>\n");
document.write("<span class=\"String\"><\/span>\n");
document.write("<span class=\"String\">&lt;% end %&gt;<\/span>\n");
document.write("<\/pre><\/pre>\n");
document.write("		<\/td>\n");
document.write("		<\/tr>\n");
document.write("		<\/table>\n");
document.write("	\n");
document.write("	<\/div>\n");
document.write("\n");
document.write("\n");
document.write("  \n");
document.write("  \n");
document.write("  <div class=\"credit\">\n");
document.write("    <div class=\"buttons\">\n");
document.write("      <a href=\"http://pastie.org/pastes/693976.txt\">\n");
document.write("      <img src=\"http://pastie.org/images/view.png\" height=\"20\" width=\"67\" /><\/a>\n");
document.write("    <\/div>\n");
document.write("  \n");
document.write("    <a href=\"http://pastie.org/693976\">Pastie #693976<\/a> linked directly from <a href=\"http://pastie.org/\">Pastie<\/a>.\n");
document.write("  <\/div><\/div>");

