show names in the creditor selection dropdown
This commit is contained in:
parent
e3a7996591
commit
c1563980c4
1 changed files with 1 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
= form_for @transaction do |f|
|
= form_for @transaction do |f|
|
||||||
= f.select :creditor, User.all, {}, { class: 'select2-selector' }
|
= f.collection_select :creditor, User.all, :id, :name, {}, { class: 'select2-selector' }
|
||||||
= f.number_field :amount
|
= f.number_field :amount
|
||||||
= f.submit "Send it!"
|
= f.submit "Send it!"
|
||||||
|
|
Loading…
Reference in a new issue