Creating a controller object from a refrencse

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

/image/addImageToController/imgId&cont=controller

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
object?

  • Emil

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 K. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs