I'm a c# programmer and I've recently started working in RoR. I have a controller that retrieves data from an external source (a virtual machine list) and saves it into a variable.
@virtual_machine_list = SomeModule::get_virtual_machines
I have 2 questions regarding this:
- the process of getting the list is lengthy, how can i call it only once (similar to a singleton initialization I guess)
- how can I retrieve this data (which is not stored in the database) from other Controller's views?
I have several forms and I want to present this list in each one.