我正在尝试使用' Devise'创建当前登录用户的用户。当我提交它给出错误
ActionController::UnknownFormat
控制器:
class AccountHoldersController < ApplicationController
respond_to :html, :json
def create
@account_holder = AccountHolder.new(account_holder_params)
respond_with(@new_doctor)
end
end
view在json.jbuilder;
表格
<%= form_for @doctor,format: :json, remote: true, html:{id:'add-doctor-form', class:'smart-form'} do |f| %>