% # headmin/filters # # ==== Options # * +url - Base url to send filter query to. Defaults to current URL # # ==== Examples # Basic version # <%= render "headmin/filters" do %#> # <%= render "headmin/filters/select", name: 'color', options: ['red', 'green', 'blue'] %#> # <% end %#> # # With custom URL # <%= render "headmin/filters", url: admin_polls_path %#> action = local_assigns.has_key?(:url) ? url : request.path # Perform yield in order to capture content blocks yield %>
<% # Clears content blocks to make this view reusable content_for(:filters_search, flush: true) { concat(nil) } content_for(:filters_menu, flush: true) { concat(nil) } content_for(:filters_buttons, flush: true) { concat(nil) } content_for(:filters_templates, flush: true) { concat(nil) } %>