3
ラジオボタンの表を表示しています。ラジオボタンの表は、一意のIDを持つレシピに対応しています。どのレシピが選択されたかを示す、ラジオボタンが押されたことを送信するためにsubmitタグを使用しています。私はいくつかのクエリ/フォームフィールドを作るために私のコントローラにIDを渡そうとしています。私は実際にIDを渡すのに問題があります。誰かが私を助けることができる、私はRuby初心者ですか?ありがとう!Railsを使用したラジオボタンの選択
<%= form_tag(:action => 'chooseOption') do %>
<%= submit_tag("Show Recipe", :class => 'action show') %>
<%= submit_tag("Delete Recipe", :class => 'action delete') %>
<td><%= radio_button_tag 'recipe', recipe, @recipe == recipe %></td>
<td>recipe.recipe_name</td>
<td>recipe.total_calories</td>
.....all the other fields
</td>