Add some useful flash messages

This commit is contained in:
benji 2015-09-26 11:57:41 +02:00
parent 1848edea8b
commit efa85e7758
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ class BarcodesController < ApplicationController
def create
@barcode.save
redirect_to barcode_products_path
redirect_to barcode_products_path, notice: "Barcode successfully linked!"
end
private

View file

@ -41,7 +41,7 @@ class ProductsController < ApplicationController
@product.update_attributes product_params
respond_to do |format|
format.js { respond_with @product }
format.html { redirect_to barcode_products_path }
format.html { redirect_to barcode_products_path, notice: "Stock has been updated!" }
end
end