app/admin/teacher.rb
ActiveAdmin.register Teacher do
permit_params :email, :password, :password_confirmation
index do
column :email
column :first_name
column :last_name
column :current_sign_in_at
column :last_sign_in_at
column :sign_in_count
default_actions
end
filter :email
filter :last_name
form do |f|
f.inputs "Teacher Details" do
f.input :email
f.input :first_name
f.input :last_name
f.input :password
f.input :password_confirmation
end
f.actions
end
end