コメントのリストと、AJAX を使用して新しいコメントを作成するためのフォームを表示しようとしています。simple_form_for ブロックは次のエラーを返します: DeliveryNegotiations#show の ArgumentError 表示 /home/action/socialpost/app/views/delivery_negotiations/show.js.erb where #10 raise: Missing block
これは show.js.erb ファイルです。
$("#conversation").html(
'<% @comments.each do |com| %> \
<strong> <%=j "User " + com.author_id.to_s + ":" %> </strong> \
<%=j (com.comment || " ") %> \
<br/> \
<% end %> \
<fieldset> \
<legend> \
New comment \
</legend> \
<%=j form_for ([@delivery_request, @delivery_negotiation, @comment]) do |builder| %> \
<%=j builder.text_area :comment %> \
<%=j builder.hidden_field :author_id, value: current_user.id %> \
<%=j builder.submit %> \
<% end %> \
</fieldset>\
');
どんな助けでも大歓迎です。