我转而使用Twitter Bootstrap 2.1.1.
我有一个模式,有一个删除按钮,但它不起作用.在之前的bootstrap版本中它运行正常.Rails版本是3.1
这是代码
<a title="<%= t('delete') %>" id="delete" class="label" href="#myModal-<%= post.id %>" data-toggle="modal"><%= t('delete') %></a>
Run Code Online (Sandbox Code Playgroud)
模态
<div class="modal hide" id="myModal-<%= post.id %>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel"><%= t('delete_this_question') %></h3>
</div>
<div class="modal-body">
<p><%= raw post.text %></p>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true"><%= t('cancel') %></button>
<%= link_to(t('delete'), { :controller => 'posts', :action => 'destroy', :id => post.id } ,:method => :delete, :class => 'btn btn-primary') %>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
但它不起作用.Rails接收GET并显示帖子,但它不会破坏它.
任何的想法?谢谢
我想在Heroku中使用apigee for twitter附加组件,但是我收到了这条消息
该附加组件仅适用于选定的用户
我该怎么办?
谢谢
PS:这个附加组件是否与Twitter API v1.1一起使用?