any before filters clearing it out?

with AJAX, if your rails app is on a different domain than the page
hosting the form the cookies may get blocked resulting in no session
information being available.



On Mar 17, 5:00 pm, radhames brito <[email protected]> wrote:
> On Thu, Mar 17, 2011 at 4:54 PM, Tony Primerano 
> <[email protected]>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.

-- 
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