requires RecordSelect plugin to be installed and configured.
# File lib/active_scaffold/bridges/chosen/helpers.rb, line 12 def active_scaffold_input_chosen(column, html_options) html_options[:class] << ' chosen' if column.plural_association? associated_options, select_options = active_scaffold_plural_association_options(column) options = {:selected => associated_options.collect {|a| a[1]}, :include_blank => as_(:_select_)} html_options.update(:multiple => true).update(column.options[:html_options] || {}) options.update(column.options) html_options[:name] = "#{html_options[:name]}[]" if html_options[:multiple] == true && !html_options[:name].to_s.ends_with?("[]") if optgroup = options.delete(:optgroup) select(:record, column.name, active_scaffold_grouped_options(column, select_options, optgroup), options, html_options) else collection_select(:record, column.name, select_options, :id, :to_label, options, html_options) end else active_scaffold_input_select(column, html_options) end end
Generated with the Darkfish Rdoc Generator 2.