Forum: Ruby on Rails Creating a controller object from a refrencse.

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
525e0c75f4f5c1d0ab0b6cc91575b74f?d=identicon&s=25 Emil Kampp (emuen)
on 2007-06-29 02:01
Hi there.

I need to add a image to a given controlers imagepool. This is to be
done from the image controller list action. This lists the images, and
suplies a selectbox which contains the possible image pools and an "add"
and "remove" button. When clicking f.x. "add" a Ajax.Request is made to


Hov do i cache the selected controller, when its name is only passed as
a string to the url. So that is is enterpreted as a true controller

 - Emil
15eb647956921a6bc9655c3513feb139?d=identicon&s=25 lanzm (Guest)
on 2007-06-29 15:03
(Received via mailing list)
rails is so called "shared nothing" and the only valuable cache
storage options you have is the session, which serializes the objects
you have associated with it and the DB. Since each request might be
catched by an another mongrel / rails instance, you can't cache
objects in controller instances or class variables.

On 29 Jun., 02:01, Emil Kampp <>
This topic is locked and can not be replied to.