I suspect this is something I should know already but I can’t seem to
get it right, how can I create application wide variables and have them
accessible to all my controllers?
I tried creating a plugin and having my controller require a specific
method from that plugin to access its variables but that didn’t work, so
I am left scratching my head.
eg from plugin ./vendor/plugins/myplugin/shared_defs.rb file
@var1 = something
@var2 = something_else
eg from controller
@my_stuff = @var1
@var1 is not defined and so my guess is my scope is off or I’m not
accessing it correctly but I am not sure which.
Thanks in advance for any light you can shed!