Today, I would like to introduce a new experimental feature. Currently, if you are using field_search you can see in top row of your record set that your list is currently filtered. However, you may not remember current search criteria. This is why I have added a little feature called “human conditions”, which will try to inform the user about the current search criteria.
Just try it out, it s fairly easy to activate.
class TeamsController < ApplicationController
active_scaffold :team do |conf|
conf.actions.swap :search, :field_search
conf.field_search.human_conditions = true
end
end
Oct 12, 2010 @ 13:00:54
I tried using :field_search but just get a “NoMethodError (undefined method `each’ for “”:String):,” whether or not I use the human_conditions method. This is with Rails 3 and Ruby 1.9.2. Do you know if :field_search is working with 3/1.92?
Oct 12, 2010 @ 14:20:52
config.actions.add :searchworks, butconfig.actions.add :field_searchfails with the error above.Oct 12, 2010 @ 14:48:04
That was a bug. Hopefully, fixed with latest commit. thanks a lot for finding.
Jul 24, 2012 @ 10:12:14
m trying to use field_search on my application , but its not working
using rails 1.2.3, active scaffold 1
Jul 25, 2012 @ 08:45:22
field_search and human conditions are only available using rails 3.x