Thursday, March 17, 2011

[Rails] Re: Help with session

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

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate