Kostas Lps wrote: > And something else that came to my mind about the Agile cart. How can > i make the cart (written in ajax) available to the other controllers > too? eg to be shown when i render each other controller's action? > Cause when i go to another controller the cart is gone!!! > Any sollution for that???
Your cart is being saved through a cart session applicable to the current user. No matter where the user goes in your site, until you nil out the cart session, the cart is still active and available. If you want to show a cart view on each page then you have to create a cart view for each page or apply a sidebar layout to the pages you want the cart to be viewable on. As an example of clearing out a cart session, session[:cart] = nil When that is applied, the cart session will be cleared. I apply this during the checkout process. -- Posted via http://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 -~----------~----~----~----~------~----~------~--~---

