Re: session question..

Jay Pangmi
Fri, 10 Oct 2008 10:46:57 -0000

Frederick Cheung wrote:
> On 10 Oct 2008, at 10:35, Jay Pangmi wrote:
> Fred

Sorry for the silly questions, so will I save carts id in the session.
Can this work?

@cart=Cart.new(params[:cart])

session[:cart]=@cart.id

and later how can I retrieve id from the session?

thanks Fred.