class ServersController < ApplicationController record_select :per_page => 10, :search_on => "name", :order_by => "name ASC", :full_text_search => true active_scaffold :servers do |config| config = self # Ruby19 compatibility config.columns = [ :name, :address, :port, :password, :sixconfigs, :mods, # :created_at, :updated_at, :remote, :exec3] config.list.sorting = { :name => :asc } config.create.columns.exclude :remote config.update.columns.exclude :remote config.list.columns.exclude :address, :port config.columns[:sixconfigs].label = "Presets" config.action_links.add 'copy', :label => 'Clone', :type => :record, :position => false, :confirm => "Do you really want to *clone* this item?" config.columns[:exec3].label = "Run" config.columns[:remote].label = "nfo" config.columns[:mods].form_ui = :record_select config.columns[:sixconfigs].form_ui = :record_select [:password].each do |column| config.columns[column].inplace_edit = true end end end