Sha256: 77423363337a8d404fee7fe7c409fd40cf5464c48f310a9dc33347c796298a06
Contents?: true
Size: 326 Bytes
Versions: 2
Compression:
Stored size: 326 Bytes
Contents
require 'ramaze' include Ramaze class MainController < Controller helper :cache trait :actions_cached => [:index] def index calc = "100_000 ** 100_00" %[ Hello, i'm a little method with this calculation: #{calc} = #{eval(calc)} ] end def invalidate action_cache.clear end end run
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.0.9 | examples/caching.rb |
ramaze-0.0.8 | examples/caching.rb |