thingspeak/app/admin/plugin.rb

24 lines
459 B
Ruby
Raw Normal View History

2014-03-22 18:21:45 +01:00
ActiveAdmin.register Plugin do
filter :name
filter :created_at
permit_params :name, :html, :css, :js, :private_flag
index do
column :id
column(:user) { |object| link_to object.user.login, admin_user_path(object.user) if object.user.present? }
column :name
column :private_flag
2014-10-06 17:42:02 +02:00
actions
2014-03-22 18:21:45 +01:00
end
form do |f|
f.semantic_errors *f.object.errors.keys
f.inputs :name, :html, :css, :js, :private_flag
f.actions
end
end