私は以下のコードを持っています:
= simple_form_for :credits, url: "/accounts/#{@account.id}/topup" do |f|
= f.input :amount, collection: [100,500,1000,5000,10000],as: :radio_buttons
= f.button :submit
コレクション内のすべての値とラベルを設定するために機能します。私が欲しいのは、
label: 100, value: 500
それはどのように起こりますか?