Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/58.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
Ruby on rails Rails引导popover赢得';t形开关_Ruby On Rails_Twitter Bootstrap_Twitter Bootstrap Rails - Fatal编程技术网

Ruby on rails Rails引导popover赢得';t形开关

Ruby on rails Rails引导popover赢得';t形开关,ruby-on-rails,twitter-bootstrap,twitter-bootstrap-rails,Ruby On Rails,Twitter Bootstrap,Twitter Bootstrap Rails,我正在试着让一个引导弹出框切换 JS代码: $('#post_description').popover('toggle') 表格编号: <%= f.input :description, :label => 'Description', :input_html => {:rows => '10', :class => "span8", "data-content" =>'Hey', "data-title" => 'TEXTILE'} %&g

我正在试着让一个引导弹出框切换

JS代码:

$('#post_description').popover('toggle')
表格编号:

    <%= f.input :description, :label => 'Description', :input_html => {:rows => '10', :class => "span8", "data-content" =>'Hey', "data-title" => 'TEXTILE'} %>
'Description',:input_html=>{:rows=>'10',:class=>“span8”,“数据内容”=>'Hey',“数据标题”=>'TEXTILE'}%>
当我将鼠标移到字段上时,弹出框显示,但当我将光标移离字段时,弹出框消失。当我点击并在第二次点击时将其关闭时,不应该切换显示弹出框吗


谢谢

只使用
$('#post_description').popover()会发生什么?其作用相同。好像开关坏了。