On Thu, Mar 17, 2011 at 5:47 PM, Frederick Cheung <
frederick.che...@gmail.com> wrote:

>
>
> On Mar 17, 9:00 pm, radhames brito <rbri...@gmail.com> wrote:
> > On Thu, Mar 17, 2011 at 4:54 PM, Tony Primerano <
> tony.primer...@gmail.com>wrote:
> >
> > > does it work when you uncomment this line in destroy?
> >
> > > # @cart = current_cart
> >
> > If i do that what happens is that since the session is nil a new cart i
> > created and i lose all the items in the original "current_cart"
> > and a new cart is rendered with no items.
> >
> > even if i successfully delete the right line_item, when the cart is
> update
> > is populated from the new current_cart and everything is lost.
> >
> > By the way im doing everything via ajax.
>
> When the create action gets called is there also another ajax action
> that gets triggered by the browser at roughly the same time? There can
> be race conditions when that sort of things happens.
>
> no other ajax call is made

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to