Module: CafeCar::Controller::Filtering
- Extended by:
- ActiveSupport::Concern
- Included in:
- CafeCar::Controller
- Defined in:
- lib/cafe_car/controller/filtering.rb
Constant Summary collapse
- CONTROL_PARAMS =
URL params CafeCar consumes for control flow (sorting, pagination, view switching, keyword search) plus Rails' routing/form internals. Everything else on an index request is treated as a filter, so a bare
?price.min=10or?name=Widgetreaches the query DSL without a namespacing prefix. %w[ controller action format id sort page per view tab q chart_x chart_y chart_by _method authenticity_token commit utf8 button _ ].freeze