Sha256: e7ebf89ffeb5e7f9846b7f58f1c22850a10518bfe8cf2780530a65004cfc8c2f

Contents?: true

Size: 569 Bytes

Versions: 24

Compression:

Stored size: 569 Bytes

Contents

class DemosController < ApplicationController

  #include SimpleFilter::Controller
  search_filter :basic_index, {save_session: true, search_method: :post_and_redirect, search_url: :search_basic_demo_url, search_action: :basic_search} do
    # define filter
    default_order "title", 'asc'

    # fields
    field :title, :string, :text, {label: '', default_value: '', condition: :like_full}

  end



  def basic_index
    f = @filter

    x = (self.respond_to? :init_search_filter_basic) ? 1 : 0

    logger.debug "f=#{@filter.inspect}, x=#{x}"


    x=0


  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
simple_search_filter-0.0.29 test/dummy/app/controllers/demos_controller.rb
simple_search_filter-0.0.28 test/dummy/app/controllers/demos_controller.rb
simple_search_filter-0.0.27 test/dummy/app/controllers/demos_controller.rb
simple_search_filter-0.0.26 test/dummy/app/controllers/demos_controller.rb
simple_search_filter-0.0.25 test/dummy/app/controllers/demos_controller.rb
simple_search_filter-0.0.24 test/dummy/app/controllers/demos_controller.rb
simple_search_filter-0.0.23 test/dummy/app/controllers/demos_controller.rb
simple_search_filter-0.0.22 test/dummy/app/controllers/demos_controller.rb
simple_search_filter-0.0.21 test/dummy/app/controllers/demos_controller.rb
simple_search_filter-0.0.20 test/dummy/app/controllers/demos_controller.rb
simple_search_filter-0.0.17 test/dummy/app/controllers/demos_controller.rb
simple_search_filter-0.0.16 test/dummy/app/controllers/demos_controller.rb
simple_search_filter-0.0.15 test/dummy/app/controllers/demos_controller.rb
simple_search_filter-0.0.13 test/dummy/app/controllers/demos_controller.rb
simple_search_filter-0.0.12 test/dummy/app/controllers/demos_controller.rb
simple_search_filter-0.0.11 test/dummy/app/controllers/demos_controller.rb
simple_search_filter-0.0.10 test/dummy/app/controllers/demos_controller.rb
simple_search_filter-0.0.9 test/dummy/app/controllers/demos_controller.rb
simple_search_filter-0.0.8 test/dummy/app/controllers/demos_controller.rb
simple_search_filter-0.0.6 test/dummy/app/controllers/demos_controller.rb