これは私の見解です:
<%= form_for item, :url => comment_item_path(item), :html => {:remote => true, 'portal-transform' => true, :multipart => true} do |f| -%>
    <%= f.fields_for :updates, Update.new, :index => nil do |m| -%>
        <%= m.text_area :comment %><br />
        <%= m.file_field :attachment %>
    <% end -%>
    <%= f.submit "Comment" %>
<% end -%>
そしてコントローラーのアクション:
respond_to do |format|
  format.js do
    render :json => {}
  end
end
comment(text_area)フィールドのみを入力して(file_field)フィールドを空白のままにしてフォームを送信すると、attachment期待どおりにレンダリングされます。しかし、フォームをで送信すると、次のattachmentようになります。
Completed 406 Not Acceptable in 56ms
私にとって何が悪かったのですか?ご案内ください。
ありがとう。