CRUDforProducts

This commit is contained in:
yamin
2017-08-16 18:19:20 +06:30
parent 73cceaf482
commit 4fc748e877
13 changed files with 220 additions and 1 deletions

3
app/models/product.rb Normal file
View File

@@ -0,0 +1,3 @@
class Product < ApplicationRecord
validates_presence_of :name
end