No description or website provided.
Ruby JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app/views/active_scaffold_overrides
frontends/default
lib
README
README.markdown
init.rb
install.rb
uninstall.rb.rb

README.markdown

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.