Swags stored correctly
This commit is contained in:
parent
2042d0eb7a
commit
4381f687b6
7 changed files with 18 additions and 28 deletions
|
|
@ -1,5 +1,5 @@
|
|||
.row
|
||||
.col-md-6
|
||||
= f.input :type, label: 'Swag\'s type', input_html: { name: "sponsor[swag_hash][#{index}][type]"}
|
||||
= f.input :type, label: 'Swag\'s type', input_html: { name: "sponsor[swags][#{index}][type]", value: v_type }
|
||||
.col-md-6
|
||||
= f.input :quantity, input_html: { name: "sponsor[swag_hash][#{index}][quantity]"}
|
||||
= f.input :quantity, as: :number, in: 0...999, input_html: { name: "sponsor[swags][#{index}][quantity]", value: v_quantity}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue