lib/active_scaffold/bridges/record_select/helpers.rb
# requires RecordSelect plugin to be installed and configured.
requires RecordSelect plugin to be installed and configured.
requires RecordSelect plugin to be installed and configured .
def active_scaffold_record_select_autocomplete(record, column, options)
        record_select_options = active_scaffold_input_text_options(options).reverse_merge(
          :controller => active_scaffold_controller_for(record.class).controller_path
        ).merge(column.options)
        html = record_select_autocomplete(options[:name], record, record_select_options)
        html = self.class.field_error_proc.call(html, self) if record.errors[column.name].any?
        html
      end
def active_scaffold_record_select_autocomplete ( record , column , options ) record_select_options = active_scaffold_input_text_options ( options ) . reverse_merge ( :controller => active_scaffold_controller_for ( record . class ) . controller_path ) . merge ( column . options ) html = record_select_autocomplete ( options [ :name ] , record , record_select_options ) html = self . class . field_error_proc . call ( html , self ) if record . errors [ column . name ] . any? html end
requires RecordSelect plugin to be installed and configured.
requires RecordSelect plugin to be installed and configured .
record
<not_specific>
column
<not_specific>
options
<not_specific>