我的索引中有以下内容:
<div class="btn-group wkt-btn-group">
<button type="button" class="btn share dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">SHARE
<span class="fa fa-angle-down" style="font-size:16px;"></span>
</button>
<% render partial: 'booksocial', locals: {book: book} %>
</div>
然后在我的部分:
<ul class="dropdown-menu wk-social">
<li>
<div class="jssocials-share jssocials-share-email">
<a href="#" onclick="PrintImage('<%= image_url(book.book_image.to_c)%>'); return false;" class="jssocials-share-link" style="background-color: purple; width: 73px;">Print</a>
<i class="jssocials-share-logo"></i>
</div>
</li>
<li>
<div class="jssocials-share jssocials-share-email">
<a href="mailto:?Subject=I Like BIg Books&Body=I%20saw%20this%20and%20thought%20of%20you!%20 http://books.com/book/<%= book.book_name %>" class="jssocials-share-link">
<i class="fa fa-at jssocials-share-logo"></i><span class="jssocials-share-label">E-mail</span>
</a>
</div>
</li>
页面使用下拉按钮进行渲染,但实际上并未呈现下拉选项。我的代码中是否存在阻止列表呈现的内容?
答案 0 :(得分:0)
<%= render partial: 'booksocial', locals: {book: book} %>