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.