Getting the results of another person in the same controller

please tell me how to get the previous information of one user by the
another with in the same controller?

is it possible? please tell me the solution with some example ?

Thanks,

On Sat, 2011-08-20 at 21:51 +0900, Kapil K. wrote:

please tell me how to get the previous information of one user by the
another with in the same controller?

Sure - put it in a database.

Peter

Every time the user clicks a link or button on your webpage, your
webpage sends a request to the server. When the server receives the
request, it causes one of the actions in your rails app to execute.
Then your action sends a response back to the browser. Immediately
after your action finishes executing, all the variables in your rails
app are destroyed. That’s just the way the internet works. It’s known
as a ‘stateless’ protocol.

To make values persist, you can store data in cookies, sessions, files,
or a database.