add devise and fix bootstrap generators

This commit is contained in:
2012-08-25 13:21:17 +02:00
parent 1259d5d937
commit b7c57d41ce
25 changed files with 481 additions and 7 deletions
+2 -2
View File
@@ -15,11 +15,11 @@
.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.select :product_category_id, options_for_select(@product_categories.map{|a| [a.name, a.id]}), include_blank: ''
= f.collection_select :product_category_id, @product_categories, :id, :name, include_blank: ''
.control-group class=(@product.errors[:supplier_id].any? ? 'error' : nil)
= f.label :supplier_id, Supplier.model_name.human, class: 'control-label'
.controls
= f.select :supplier_id, options_for_select(@suppliers.map{|a| [a.name, a.id]}), include_blank: nil
= f.collection_select :supplier_id, @suppliers, :id, :name, include_blank: nil
.form-actions
= f.submit nil, class: 'btn btn-primary'
'