continuing the refactor of the admin section
This commit is contained in:
@@ -44,6 +44,7 @@ module Admin
|
||||
# POST /products.json
|
||||
def create
|
||||
@product = Product.new(params[:product])
|
||||
@product.supplier_id = params[:product][:supplier_id]
|
||||
|
||||
respond_to do |format|
|
||||
if @product.save
|
||||
|
||||
Reference in New Issue
Block a user