我只想添加侧边栏项目的复选标记。例如,如果用户提供了有关列表的地址信息,则应显示复选标记。但是勾选标记根本没有显示出来。为什么呢?
<ul class="sidebar-list">
<li class="sidebar-item">
<%= link_to "Listing", listing_wall_path, class: "sidebar-link active" %>
<span class="pull-right text-babu"><i class="fa fa-check"></i></span>
</li>
<li class="sidebar-item">
<%= link_to "Pricing", pricing_wall_path, class: "sidebar-link active" %>
<% if !@wall.price.blank? %>
<span class="pull-right text-babu"><i class="fa fa-check"></i></span>
<% end %>
</li>
<li class="sidebar-item">
<%= link_to "Description", description_wall_path, class: "sidebar-link
active" %>
<% if !@wall.wall_name.blank? %>
<span class="pull-right text-babu"><i class="fa fa-check"></i></span>
<% end %>
</li>
<li class="sidebar-item">
<%= link_to "Photos", photo_upload_wall_path, class: "sidebar-link active" %>
<% if !@wall.photos.blank? %>
<span class="pull-right text-babu"><i class="fa fa-check"></i></span>
<% end %>
</li>
<li class="sidebar-item">
<%= link_to "Location", location_wall_path, class: "sidebar-link active" %>
<% if !@wall.addressy.blank? %>
<span class="pull-right text-babu"><i class="fa fa-check"></i></span>
<% end %>
</li>