show names in the creditor selection dropdown

This commit is contained in:
Felix Van der Jeugt 2015-09-08 16:53:43 +02:00
parent e3a7996591
commit c1563980c4

View file

@ -1,4 +1,4 @@
= 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.submit "Send it!"