On Jun 11, 3:43 pm, Lille <lille.pengu...@gmail.com> wrote: > Hi, > > Can someone please confirm that accessors cannot be used in > ActionController to 'persist' values between requests, at least, not > without persisting to the database? > > I'm trying to minimize AJAX calls by storing information from certain > of my calls for use by others later, but my attempts fail. My takeaway > is that instance variables, as set by an accessor, are not stored > between requests. > correct - fresh requests get a new instance of the controller class. In production the next request could very easily go to a different rails instance or even a different physical server if your app is running on several servers.
Fred > Thanks for any comment, > > Lille -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.