Skip to content

Instantly share code, notes, and snippets.

@amolpujari
Created October 23, 2013 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save amolpujari/7112886 to your computer and use it in GitHub Desktop.
Save amolpujari/7112886 to your computer and use it in GitHub Desktop.
activeadmin tweaks
ActiveAdmin.register Article do
index do
selectable_column
id_column
column :name, :sortable => :name do |resource|
editable_text_column resource, :name
end
column 'Type', :sortable => :article_type do |resource|
column_select(resource, :article_type, ["News", "Story", "Case Study", "Business"])
end
column :created_at
column :updated_at
default_actions
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment