25 lines
341 B
Ruby
25 lines
341 B
Ruby
ActiveAdmin.register User do
|
|
permit_params :email, :name
|
|
|
|
index do
|
|
selectable_column
|
|
id_column
|
|
column :email
|
|
column :name
|
|
column :created_at
|
|
actions
|
|
end
|
|
|
|
filter :email
|
|
filter :name
|
|
filter :created_at
|
|
|
|
form do |f|
|
|
f.inputs do
|
|
f.input :email
|
|
f.input :email
|
|
end
|
|
f.actions
|
|
end
|
|
end
|