How to transfer object in pages?

Hi all:

Could you tell me how to transfer an object from one page to another?
because the object should be used in both of these two pages. for now, I
just know transferring parameter via :id and select object again in
another page, but I think this soluction is too fool…hehe. I am a
newer for ROR, so I just can know this way. Could you tell me how to
deal with it with object re-used?

Thanks
Tony Shih

You can pass an object from one page to another by using
flash[:my_object] = @my_object
then you would access it on the other page with flash[:my_object]
though this may not be your best solution.

On Apr 10, 12:59 pm, Shih T. [email protected]

http://membres.lycos.fr/ccpfordz

2008/4/10, edberner [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