Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iframe不在rails 4中工作,形式为?_Iframe_Ruby On Rails 4 - Fatal编程技术网

iframe不在rails 4中工作,形式为?

iframe不在rails 4中工作,形式为?,iframe,ruby-on-rails-4,Iframe,Ruby On Rails 4,目前,我正在将我的应用程序从rails 3升级到rails 4。 升级后,iframe不使用表单_,引发以下错误 ActionController::UnknownFormat (ActionController::UnknownFormat): here is mycode: <%= form_for note_collection,:url=> lease_suites_create_path(portid,propid), :html=>{:target =&g

目前,我正在将我的应用程序从rails 3升级到rails 4。 升级后,iframe不使用表单_,引发以下错误

    ActionController::UnknownFormat (ActionController::UnknownFormat):

here is mycode:
<%= form_for note_collection,:url=> lease_suites_create_path(portid,propid), :html=>{:target => "lease_suites_frame", :multipart => true,:id=>"mgmt_suites_form"} do |p| -%>
---
----
---
    <a href="javascript:;" class="btn-grey newtask-btn" id ="suite_add_id"> <span class="addProspect">submit</span></a>
<%end%>

and  i am submitting my form with jquery ajax.
here is iframe:
<iframe id="lease_suites_frame" name="lease_suites_frame" style="display: none">
ActionController::UnknownFormat(ActionController::UnknownFormat):
这是mycode:
lease_suites_create_path(portid,propid),:html=>{:target=>“lease_suites_frame”,“multipart=>true,:id=>“mgmt_suites_form”}do | p |-%>
---
----
---
我正在用jQueryAjax提交我的表单。
以下是iframe:

如果您使用jquery ajax提交,iframe的用途是什么?我正在jquery ajax中提交“lease\u suites\u frame”,它声称什么格式是未知的?