```ruby
redirect_to request.referer, :flash => { :success => "已將商品新增至購物車！" }
```

request.referer 是來源網頁，也就是上一頁