Displaying 1 result from an estimated 1 matches for "my_cache".
Did you mean:
py_cache
2006 Jan 13
6
rails bug ? metadata lost between page invocation ?
...uot;hello"
end
end
Here is the controller
# file app/controllers/my_test_controller.rb
class MyTestController < ApplicationController
def put
MyCache.put
end
def get
MyCache.get
end
end
Here is the cache object:
# file app/my_cache.rb
class MyCache
@@saved_obj = nil
def self.put
@@saved_obj = SimpleObj.new
p @@saved_obj.extra_attr
end
def self.get
p @@saved_obj.extra_attr
end
end
To recreate a full setup:
rails test
cd test
./script/generate model Si...