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
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> 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
>
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---