document.write('<link rel="stylesheet" href="http://gist.github.com/stylesheets/gist/embed.css"/>')





document.write('<div id=\"gist-91866\" class=\"gist\">\n  \n  \n    \n            \n\n      <div class=\"gist-file\">\n        <div class=\"gist-data gist-syntax\">\n          \n          \n          \n            <div class=\"gist-highlight\"><pre><div class=\"line\" id=\"LC1\"><span class=\"c1\"># Methods added to this helper will be available to all templates in the application.<\/span><\/div><div class=\"line\" id=\"LC2\"><span class=\"k\">module<\/span> <span class=\"nn\">ApplicationHelper<\/span><\/div><div class=\"line\" id=\"LC3\">&nbsp;&nbsp;<\/div><div class=\"line\" id=\"LC4\">&nbsp;&nbsp;<span class=\"k\">def<\/span> <span class=\"nf\">sheet<\/span><span class=\"p\">(<\/span><span class=\"o\">*<\/span><span class=\"n\">args<\/span><span class=\"p\">,<\/span> <span class=\"o\">&amp;<\/span><span class=\"n\">block<\/span><span class=\"p\">)<\/span><\/div><div class=\"line\" id=\"LC5\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"n\">code<\/span> <span class=\"o\">=<\/span> <span class=\"o\">&lt;&lt;-<\/span><span class=\"no\">EOF<\/span><\/div><div class=\"line\" id=\"LC6\"><span class=\"sh\">      &lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;#{args[0]}&quot;&gt;<\/span><\/div><div class=\"line\" id=\"LC7\"><span class=\"sh\">  			&lt;tr&gt;<\/span><\/div><div class=\"line\" id=\"LC8\"><span class=\"sh\">  				&lt;td height=&quot;11&quot; width=&quot;6&quot;&gt;&lt;img src=&quot;/images/shadow_tl.png&quot; width=&quot;6&quot; height=&quot;11&quot; border=&quot;0&quot; /&gt;&lt;/td&gt;<\/span><\/div><div class=\"line\" id=\"LC9\"><span class=\"sh\">  				&lt;td rowspan=&quot;2&quot; style=&quot;background-color: #fff; padding: 2px;&quot;&gt;<\/span><\/div><div class=\"line\" id=\"LC10\">&nbsp;<\/div><div class=\"line\" id=\"LC11\"><span class=\"sh\">  					#{capture(&amp;block)}<\/span><\/div><div class=\"line\" id=\"LC12\">&nbsp;<\/div><div class=\"line\" id=\"LC13\"><span class=\"sh\">  				&lt;/td&gt;<\/span><\/div><div class=\"line\" id=\"LC14\"><span class=\"sh\">  				&lt;td height=&quot;11&quot; width=&quot;6&quot;&gt;&lt;img src=&quot;/images/shadow_tr.png&quot; width=&quot;6&quot; height=&quot;11&quot; border=&quot;0&quot; /&gt;&lt;/td&gt;<\/span><\/div><div class=\"line\" id=\"LC15\"><span class=\"sh\">  			&lt;/tr&gt;<\/span><\/div><div class=\"line\" id=\"LC16\"><span class=\"sh\">  			&lt;tr&gt;<\/span><\/div><div class=\"line\" id=\"LC17\"><span class=\"sh\">  				&lt;td style=&quot;background: url(&#39;/images/shadow_l.png&#39;) top right repeat-y;&quot;&gt;&lt;img src=&quot;/images/spacer.gif&quot; border=&quot;0&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;&lt;/td&gt;<\/span><\/div><div class=\"line\" id=\"LC18\"><span class=\"sh\">  				&lt;td style=&quot;background: url(&#39;/images/shadow_r.png&#39;) top left repeat-y;&quot;&gt;&lt;img src=&quot;/images/spacer.gif&quot; border=&quot;0&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;&lt;/td&gt;<\/span><\/div><div class=\"line\" id=\"LC19\"><span class=\"sh\">  			&lt;/tr&gt;<\/span><\/div><div class=\"line\" id=\"LC20\"><span class=\"sh\">  			&lt;tr&gt;<\/span><\/div><div class=\"line\" id=\"LC21\"><span class=\"sh\">  				&lt;td height=&quot;11&quot;&gt;&lt;img src=&quot;/images/shadow_bl.png&quot; width=&quot;6&quot; height=&quot;11&quot; border=&quot;0&quot; /&gt;&lt;/td&gt;<\/span><\/div><div class=\"line\" id=\"LC22\"><span class=\"sh\">  				&lt;td style=&quot;background: url(&#39;images/shadow_b.png&#39;) top left repeat-x;&quot;&gt;&lt;img src=&quot;/images/spacer.gif&quot; border=&quot;0&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;&lt;/td&gt;<\/span><\/div><div class=\"line\" id=\"LC23\"><span class=\"sh\">  				&lt;td&gt;&lt;img src=&quot;/images/shadow_br.png&quot; width=&quot;6&quot; height=&quot;11&quot; border=&quot;0&quot; /&gt;&lt;/td&gt;<\/span><\/div><div class=\"line\" id=\"LC24\"><span class=\"sh\">  			&lt;/tr&gt;<\/span><\/div><div class=\"line\" id=\"LC25\"><span class=\"sh\">  		&lt;/table&gt;<\/span><\/div><div class=\"line\" id=\"LC26\"><span class=\"no\">    EOF<\/span><\/div><div class=\"line\" id=\"LC27\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"n\">concat<\/span><span class=\"p\">(<\/span><span class=\"n\">code<\/span><span class=\"p\">)<\/span><\/div><div class=\"line\" id=\"LC28\">&nbsp;&nbsp;<span class=\"k\">end<\/span><\/div><div class=\"line\" id=\"LC29\">&nbsp;&nbsp;<\/div><div class=\"line\" id=\"LC30\"><span class=\"k\">end<\/span><\/div><\/pre><\/div>\n          \n        <\/div>\n\n        <div class=\"gist-meta\">\n          <a href=\"http://gist.github.com/raw/91866/ea209e05950866914d55479ca5fb03e8b1fe029a/gistfile1.rb\" style=\"float:right;\">view raw<\/a>\n          <a href=\"http://gist.github.com/91866#file_gistfile1.rb\" style=\"float:right;margin-right:10px;color:#666\">gistfile1.rb<\/a>\n          <a href=\"http://gist.github.com/91866\">This Gist<\/a> brought to you by <a href=\"http://github.com\">GitHub<\/a>.\n        <\/div>\n      <\/div>\n    \n  \n<\/div>\n')
