Hi,
I would like to know variable scope for variable accessibility in all rails controller methods.
for example, I had done like below.
class app_controller
def set_vaule @var = "12gfjdl" end
def actions1 need display @var here end
def action2 here also need @var value end
end
note: I had tried with session and declare @var as class variable(@@var) it access only first time, later if I made any request again the action is set to nil i.e uninitialised class variable.