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

  • <%= link_to '全部', libraries_path(search: params[:search]), remote: true %>
  • <%= link_to '我的', libraries_path(search: params[:search], type: 'mine'), remote: true %>
<%= hidden_field_tag(:type, params[:type]) %>
<%= render partial: 'library_list' %>