Sha256: 6a7367bb836e1554e7252451d727d7e20496fcbf8fff54e99e594a377f6f318d
Contents?: true
Size: 335 Bytes
Versions: 4
Compression:
Stored size: 335 Bytes
Contents
require 'ramaze' include Ramaze class MainController < Controller map '/' helper :cache trait :actions_cached => [:index] def index(n1 = 100_000, n2 = 100_00) %[ Hello, i'm a little method with this calculation: #{n1} ** #{n2} = #{n1.to_i ** n2.to_i} ].strip end def invalidate action_cache.clear end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.1.3 | examples/caching.rb |
ramaze-0.1.0 | examples/caching.rb |
ramaze-0.1.2 | examples/caching.rb |
ramaze-0.1.1 | examples/caching.rb |