Skip to content

xaop/activescaffold_advanced_search

Repository files navigation

Activescaffold Advanced Search Plugin

Enables you search on specific fields:

  • string, text, integer and boolean columns
  • multiple condtions: AND / OR

Usage

Add the following to your application.rb (or application_controller.rb for rails > 2.3)

ActiveScaffold.set_defaults do |conf|
  conf.actions.exclude :search
  conf.actions.add :advanced_search
end

This will activate the advanced search plugin for all your controllers.

Ofcourse, you can also do this only for a specific controller.


TODO

  • search on date columns
  • grouping of AND / OR conditions

WARNING: Does not work with Prototype 1.5.0 due to an error in how it serializes forms. Has been tested with 1.6.0.2.

About

Activescaffold advanced search

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •