コレクションを選択しています:
<%= f.collection_select :role, User::ROLES, :to_s, :humanize %>
このメソッドのラジオボタンは何ですか?
ありがとう
コレクションを選択しています:
<%= f.collection_select :role, User::ROLES, :to_s, :humanize %>
このメソッドのラジオボタンは何ですか?
ありがとう
Rails 3 にはそのようなヘルパーはありません。Rails 4 では、collection_radio_buttonsです。