While building this portal I had to create custom methods which filter, based on indices, the data list. Now, creating custom methods is not a grind in activescaffold but filtering list is :-
Solution
- add a custom method - suppose "filter_by_foreign_key_2"
- copy paste the 'find_page' method from vendor/plugins/active_scaffold/lib/finder.rb to your controller - this overrides the 'find_page' method
- in your controller create this custom method "filter_by_foreign_key_2" and call 'list' method
def filter_by_foreign_key_2 list end - add below lines to 'find_page' in your controller so that we specify which condition to use when action is "filter_by_foreign_key_2"
case params[:action] when "filter_by_foreign_key_2" : condition = "foreign_key='yell'" end - now, find text 'finder_options' in 'find_page' method and change
:conditions => all_conditions
to:conditions => condition

