ajax - Rails 3 remote form How do I specify the content type
ajax - Rails 3 remote form: How do I specify the content type
You can set the content-type with:
= form_for(@object, :remote => true, :html => {:'data-type' => 'json'})
As described in rails.js line 106.