10 11 12 13
# File 'app/controllers/products_controller.rb', line 10 def update @product = Product.find_by_permalink(params['id']) || Product.find_by_id(params['id']) update! end