ActiveAdmin.register JamRuby::User, :as => 'EducationInterest' do

  menu :label => 'Interested in Education', :parent => 'JamClass'

  config.sort_order = 'created_at desc'
  config.batch_actions = false
  config.per_page = 100
  config.paginate = true
  config.filters = false

  scope("All", default: true) { |scope| scope.where(education_interest: true) }

  index do
    column "Name" do |user|
      span do
        link_to "#{user.name} (#{user.email})", "#{Rails.application.config.external_root_url}/client#/profile/#{user.id}"
      end
    end
  end
end