search for: group_label_method

Displaying 1 result from an estimated 1 matches for "group_label_method".

2008 Nov 18
0
Scoping option_groups_from_collection_for_select
How can I scope the options returned by option_groups_from_collection_for_select? Method calls look like this: option_groups_from_collection_for_select (collection, group_method, group_label_method, option_key_method, option_value_method, selected_key = nil) But say I want to limit the results returned by the option_key and option_value methods to some particular scope? For instance, using the sample code in rdoc: class Continent < ActiveRecord::Base has_many :countries # attr...