Remove unwanted fields from admin view, along with edit and new action

This commit is contained in:
leenasn
2015-11-06 15:23:53 +05:30
parent 75b8808ea4
commit 5b022be9da

View File

@@ -1,5 +1,7 @@
ActiveAdmin.register Device do
actions :all, except: [:edit,:new]
# See permitted parameters documentation:
# https://github.com/activeadmin/activeadmin/blob/master/docs/2-resource-customization.md#setting-up-strong-parameters
#
@@ -12,6 +14,13 @@ ActiveAdmin.register Device do
# permitted << :other if resource.something?
# permitted
# end
index do
selectable_column
id_column
column "Model Name",:model
column :created_at
column :updated_at
actions
end
end