Add some useful flash messages
This commit is contained in:
parent
1848edea8b
commit
efa85e7758
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue