Hi,
In my test case below, it seems that ‘initialize’ is called everytime
‘hello’ is called. Is this by design, a bug, or my pilot error?
class FooController < ApplicationController
def initialize
print "\n initialize \n"
end
def hello
print "\n hello \n"
end
end
I thought initialize will be called exactly once when the controller is
constructed and not when an action is executed.
Thanks for your help and sorry if duplicate,
-Danny