ActiveAdmin.register Page do
permit_params :body, :name
index do
column :name
column :created_at
column :updated_at
actions
end
form do |f|
f.inputs "Page Details" do
f.input :name
f.input :body, as: :text, input_html: { class: "tinymce" }
end
f.actions
end
end