<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -6,12 +6,14 @@ class MainController &lt; Ramaze::Controller
   helper :cache
 
   def index
-%[
+    @number = rand * 100
+
+%q[
 &lt;html&gt;
   &lt;head&gt;&lt;title&gt;examples/caching&lt;/title&gt;&lt;/head&gt;
   &lt;body&gt;
     &lt;p&gt;
-      This action just shows you a random number: #{rand * 100}.&lt;br /&gt;
+      This action just shows you a random number: #{@number}.&lt;br /&gt;
       If you &lt;a href=&quot;/&quot;&gt;refresh&lt;/a&gt; the page it won't change since you see a cached version.&lt;br /&gt;
       But if you &lt;a href=&quot;/invalidate&quot;&gt;invalidate&lt;/a&gt; it, the page will be regenerated.
     &lt;/p&gt;
@@ -20,10 +22,10 @@ class MainController &lt; Ramaze::Controller
 ]
   end
 
-  cache_action :method =&gt; :index
+  cache_action :method =&gt; 'index'
 
   def invalidate
-    Ramaze::Cache.action.delete(:method =&gt; 'index')
+    Ramaze::Cache.action.delete('/')
     redirect :/
   end
 end</diff>
      <filename>examples/helpers/cache.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,13 +6,11 @@ describe 'Caching' do
 
   it '/' do
     3.times do
-      lambda{ get('/') }.
-        should.not.change{ get('/').body }
+      lambda{ get('/') }.should.not.change{ get('/').body }
     end
 
     3.times do
-      lambda{ get('/invalidate') }.
-        should.change{ get('/').body }
+      lambda{ get('/invalidate') }.should.change{ get('/').body }
     end
   end
 end</diff>
      <filename>spec/examples/caching.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>93a741bfc3afb72e00ba2b26d1bb2a5de6b47898</id>
    </parent>
  </parents>
  <author>
    <name>Michael Fellinger</name>
    <email>m.fellinger@gmail.com</email>
  </author>
  <url>http://github.com/manveru/ramaze/commit/e7843172aae5ff2f3a4d5d58748a11d92717471c</url>
  <id>e7843172aae5ff2f3a4d5d58748a11d92717471c</id>
  <committed-date>2009-04-30T22:43:50-07:00</committed-date>
  <authored-date>2009-04-30T22:43:50-07:00</authored-date>
  <message>Fix the helper/caching example</message>
  <tree>4f083ce3b0743fc6a1ebbab57910ebc48baae0f7</tree>
  <committer>
    <name>Michael Fellinger</name>
    <email>m.fellinger@gmail.com</email>
  </committer>
</commit>
