add activeadmin

This commit is contained in:
João Geonizeli
2022-07-20 22:57:39 -03:00
parent ae7d31bc1b
commit 5e0d3def6d
12 changed files with 501 additions and 19 deletions

24
app/admin/users.rb Normal file
View File

@@ -0,0 +1,24 @@
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