On Oct 10, 11:46 am, Jay Pangmi <[EMAIL PROTECTED]>
wrote:
> 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])
>
this won't work, because you haven't saved the cart object (so it has
no id)

> session[:[EMAIL PROTECTED]
>
> and later how can I retrieve id from the session?
>
The same as retrieving any other value from the sesion (ie
session[:cart])

Fred
> thanks Fred.
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to