updateProduct

This commit is contained in:
yamin
2017-08-21 16:06:34 +06:30
parent 2a736cc92f
commit 3b5eb532d3
7 changed files with 101 additions and 4 deletions

View File

@@ -1,3 +1,6 @@
class Product < ApplicationRecord
validates_presence_of :name
# Product Image Uploader
mount_uploader :image_path, ProductImageUploader
end