I would like to know variable scope for variable accessibility in all
rails controller methods.
for example, I had done like below.
@var = "12gfjdl"
need display @var here
here also need @var value
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.