Skip to content

Commit

Permalink
自由課題、カートに入れたらカウントをゼロに
Browse files Browse the repository at this point in the history
  • Loading branch information
kyanny committed Jan 20, 2010
1 parent 8148c7f commit 5ce0747
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions depot/app/controllers/store_controller.rb
Expand Up @@ -12,6 +12,7 @@ def add_to_cart
product = Product.find(params[:id])
@cart = find_cart
@cart.add_product(product)
session[:counter] = 0
rescue
logger.error("無効な商品#{params[:id]}にアクセスしようとしました")
redirect_to_index("無効な商品です")
Expand Down

0 comments on commit 5ce0747

Please sign in to comment.