Persisting a shopping cart in Ruby on Rails

前端 未结 2 1592
暗喜
暗喜 2021-02-15 17:03

Currently developing a shopping cart, the options for persisting the cart, as i see them are:

  1. Store the entire cart object in a sessions table.
  2. Store the
2条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-15 17:38

    Check out the Railscasts episodes #141-#146... Helped me a lot with shopping cart/checkout related stuff (though the episodes don't directly address your question, you will get to see a straightforward method of implementing a shopping cart).

    • http://railscasts.com/episodes/141-paypal-basics
    • http://railscasts.com/episodes/142-paypal-notifications
    • http://railscasts.com/episodes/143-paypal-security
    • http://railscasts.com/episodes/144-active-merchant-basics
    • http://railscasts.com/episodes/145-integrating-active-merchant
    • http://railscasts.com/episodes/146-paypal-express-checkout

提交回复
热议问题