Unfortunately, the class ( @@variables ) is not copied to the view. You can still get them through:
controller.instance_eval{@@variable}
or
@controller.instance_eval{@@variable}
or something even less rude.
With Rails, 99.9 out of 100 people should never do this, or at least I can't come up with a good reason.
cwninja
source share