教学案例 <%= link_to '发布案例', new_library_path, class: 'white-btn edu-filter-btn-blue fr mr10 mt8', style: 'color: #4CACFF' %>

<% if User.current.try(:logged?) %>
  • <%= link_to '全部', libraries_path(search: params[:search]), remote: true %>
  • <%= link_to '我的', libraries_path(search: params[:search], type: 'mine'), remote: true %>
<% end %>
<%= hidden_field_tag(:type, params[:type]) %>
<%= render partial: 'library_list' %>