def update
    @product = Product.find(params[:id])

    respond_to do |format|
      if @product.update_attributes(params[:product])