私の見解では、私は次のことを行います。
<table border="1">
<tr>
<th>Question</th>
<th>Counter</th>
<th>Lastsent</th>
<th>Email</th>
</tr>
<% @email_stats.each do |email_stat| %>
<% post = Post.find(email_stat.postId) %>
<% if post.posttype == 'Question' %>
<tr>
<td><%= post.question %></td>
<td><%= email_stat.counter%></td>
<td><%= email_stat.lastsent %></t>
<td><%= text_field_tag 'email', email_stat.email%></td>
</tr>
<% end %>
</table>
これが私が持っているものです。一部のオブジェクトでは、電子メールが「空白」になるため、テーブル内のすべてのレコードを表示し、モデレーターが電子メールを入力して保存をクリックして保存できるようにします。
使用form_for
しましたが、1つのオブジェクトのみを保存するために使用されています。
保存のためにアレイをサーバーに送り返す最良の方法は何ですか?