1
collecton_selectドロップダウンを作成してフォーム内のリソースの状態を設定するにはどうすればよいですか?pluginweek/state_machineを使用してcollection_selectで自分の状態を設定します
今私は
<%= f.collection_select :state, Ticket.state.all, :event, :state_name_humanize, :prompt => true %>
は( 'state_machineで始める' チュートリアルを作るpluginaweekことができ、私はそれを使用して、本当に暑いですが、私はNUBEだ。。。)している
HTTP ://stackoverflow.com/questions/4138437/get-list-of-state-machine-states – tonymarschall