many changes
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
= f.label :price, class: 'control-label'
|
||||
.controls
|
||||
= f.text_field :price, class: 'text_field'
|
||||
.control-group class=(@product.errors[:product_category_id].any? ? 'error' : nil)
|
||||
/.control-group class=(@product.errors[:product_category_id].any? ? 'error' : nil)
|
||||
= f.label :product_category_id, ProductCategory.model_name.human, class: 'control-label'
|
||||
.controls
|
||||
= f.collection_select :product_category_id, @product_categories, :id, :name, include_blank: ''
|
||||
|
||||
Reference in New Issue
Block a user