/ Published in: Rails
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# CHANGED: Initialize cart. def initialize_cart @cart = @request.session[:cart] ||= Cart.create end