Skip to content

Instantly share code, notes, and snippets.

@cdesch
Created May 13, 2016 00:03
Show Gist options
  • Save cdesch/ef962602ed86286afc59e4f9f142d67c to your computer and use it in GitHub Desktop.
Save cdesch/ef962602ed86286afc59e4f9f142d67c to your computer and use it in GitHub Desktop.
ActiveAdmin.register Article do
permit_params :title, :content, :published_at, :hidden, :position, :slug, :seo_tags, :seo_description
index do
selectable_column
id_column
column :title
column :slug
column :hidden
actions
end
filter :title
filter :hidden
form do |f|
f.inputs 'Article Details' do
f.input :title
f.cktext_area :content
f.input :published_at
f.input :seo_tags
f.input :seo_description
f.input :position
end
f.actions
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment