Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/440.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/visual-studio-2010/4.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
Javascript rails形成引导式popover数据远程_Javascript_Jquery_Ruby On Rails_Twitter Bootstrap - Fatal编程技术网

Javascript rails形成引导式popover数据远程

Javascript rails形成引导式popover数据远程,javascript,jquery,ruby-on-rails,twitter-bootstrap,Javascript,Jquery,Ruby On Rails,Twitter Bootstrap,我有一个rails表单部分,我正在引导弹出框中显示。表单显示,所有字段都具有预期的行为 我遇到的问题是from的remote=>true并一直以html的形式提交。在过去的3-4个小时里,我一直在尝试解决这个问题,尝试了各种方法,但没有木材 这是我的简单代码- 部分除法 表单标签 'ops客户表单',:class=> “form horizontal',:remote=>true,:style=>padding:10px;”, :真实性\u令牌=>true do%> 有没有办法在通过popov

我有一个rails表单部分,我正在引导弹出框中显示。表单显示,所有字段都具有预期的行为

我遇到的问题是from的remote=>true并一直以html的形式提交。在过去的3-4个小时里,我一直在尝试解决这个问题,尝试了各种方法,但没有木材

这是我的简单代码-

部分除法 表单标签
'ops客户表单',:class=>
“form horizontal',:remote=>true,:style=>padding:10px;”,
:真实性\u令牌=>true do%>
有没有办法在通过popover调用的表单上启用远程提交

这是表单的屏幕截图。错误是它正在以HTML的形式提交。我一定错过了一些明显的东西


提前感谢

您是否需要应用程序.js中的jquery\u ujs(或您正在使用的任何js sprockets文件?)是的,jquery\u ui在所需文件列表中。远程true在站点上的任何位置都能工作。除非我在引导弹出窗口中调用此表单。popover不允许任何JS在其中执行。甚至表单上的欧芹验证也被禁用。对不起,我的意思是文件列表中需要jQuery_ujs。
<div id='ops_customer_creation_modal' style='display:none'><%= render :partial => 'customers/ops_creation_form', :locals => { :customer => Customer.new } %></div>
// a method for ops to create a new customer
    $('.ops_create_customer_window').popover({ 
        html : true,
        content: function() {
          return $('#ops_customer_creation_modal').html();
        },

      }).on('shown.bs.popover', function() {
          $("#ops-customer-form").parsley(); # to enable parsley
        });
<%= form_tag ops_create_customer_path, :id => 'ops-customer-form', :class =>
'form-horizontal', :remote => true, :style => 'padding:10px;', 
:authenticity_token => true do %>